You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
484 B
35 lines
484 B
6 years ago
|
#pragma once
|
||
|
|
||
|
#include <freertos/FreeRTOS.h>
|
||
|
#include <freertos/task.h>
|
||
|
|
||
|
class U8G2;
|
||
|
|
||
|
namespace ugv {
|
||
|
|
||
|
namespace comms {
|
||
|
class CommsClass;
|
||
|
}
|
||
|
namespace io {
|
||
|
class IOClass;
|
||
|
}
|
||
|
|
||
|
class DisplayClass {
|
||
|
public:
|
||
|
DisplayClass() = delete;
|
||
|
DisplayClass(comms::CommsClass *comms, io::IOClass *io);
|
||
|
|
||
|
void Init();
|
||
|
|
||
|
private:
|
||
|
comms::CommsClass *comms_;
|
||
|
io::IOClass *io_;
|
||
|
U8G2 *oled;
|
||
|
TaskHandle_t task_handle_;
|
||
|
|
||
|
void Run();
|
||
|
static void RunThread(void *arg);
|
||
|
};
|
||
|
|
||
|
} // namespace ugv
|