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.
31 lines
464 B
31 lines
464 B
#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(); |
|
}
|
|
|