mirror of
https://github.com/Lurkars/esp-ena.git
synced 2026-05-08 20:10:37 +02:00
componeent structure, preparation for component branch
This commit is contained in:
+9
-3
@@ -26,11 +26,14 @@
|
||||
#include "ena-bluetooth-advertise.h"
|
||||
#include "ena-bluetooth-scan.h"
|
||||
#include "ena-cwa.h"
|
||||
#include "interface.h"
|
||||
#include "ds3231.h"
|
||||
#include "ssd1306.h"
|
||||
#include "interface.h"
|
||||
#include "button-input.h"
|
||||
#include "rtc.h"
|
||||
#include "wifi-controller.h"
|
||||
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
void app_main(void)
|
||||
@@ -51,9 +54,9 @@ void app_main(void)
|
||||
// start interface
|
||||
interface_start();
|
||||
|
||||
// set system time from DS3231
|
||||
// set system time from RTC
|
||||
struct tm rtc_time;
|
||||
ds3231_get_time(&rtc_time);
|
||||
rtc_get_time(&rtc_time);
|
||||
|
||||
time_t curtime = mktime(&rtc_time);
|
||||
struct timeval tv = {0};
|
||||
@@ -69,6 +72,9 @@ void app_main(void)
|
||||
// start with main interface
|
||||
interface_main_start();
|
||||
|
||||
// start button input
|
||||
button_input_start();
|
||||
|
||||
while (1)
|
||||
{
|
||||
ena_run();
|
||||
|
||||
Reference in New Issue
Block a user