Files
tactility/app-esp/src/main.c
T
Ken Van Hoeylandt de34cbfd7a Added GPIO app (#45)
- Implemented GPIO app
- LVGL now allocates freely (as opposed to using a fixed-size buffer): when it goes OOM, it just deletes image cache and starts behaving erratically.
2024-02-13 22:40:17 +01:00

39 lines
867 B
C

#include "board_config.h"
#include "tactility_esp.h"
// Apps
#include "hello_world/hello_world.h"
extern void wifi_main(void*);
extern const ServiceManifest wifi_service;
extern const AppManifest gpio_app;
extern const AppManifest wifi_connect_app;
extern const AppManifest wifi_manage_app;
void app_main(void) {
static const Config config = {
/**
* Auto-select a board based on the ./sdkconfig.board.* file
* that you copied to ./sdkconfig before you opened this project.
*/
.hardware = TT_BOARD_HARDWARE,
.apps = {
&gpio_app,
&hello_world_app,
&wifi_connect_app,
&wifi_manage_app
},
.services = {
&wifi_service
},
.auto_start_app_id = NULL
};
tt_esp_init();
tt_init(&config);
wifi_main(NULL);
}