32 lines
464 B
C++
32 lines
464 B
C++
#include <esp_log.h>
|
|
#include <string.h>
|
|
#include <u8g2.h>
|
|
|
|
#include "ugv_comms.hh"
|
|
#include "ugv_display.hh"
|
|
#include "ugv_io.hh"
|
|
|
|
namespace ugv {
|
|
|
|
using ugv::comms::Comms;
|
|
using ugv::io::IO;
|
|
|
|
DisplayClass *display;
|
|
|
|
static const char *TAG = "ugv_main";
|
|
|
|
void setup(void) {
|
|
ESP_LOGI(TAG, "setup");
|
|
|
|
Comms.Init();
|
|
IO.Init();
|
|
display = new DisplayClass(&Comms, &IO);
|
|
display->Init();
|
|
}
|
|
|
|
} // namespace ugv
|
|
|
|
extern "C" void app_main() {
|
|
ugv::setup();
|
|
}
|