more components and code splitting
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
11
main/main.c
11
main/main.c
@@ -1,20 +1,13 @@
|
||||
#include "led_matrix.h"
|
||||
#include "persistence.h"
|
||||
#include "remote_control.h"
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "nvs_flash.h"
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
// Initialize NVS
|
||||
esp_err_t ret = nvs_flash_init();
|
||||
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND)
|
||||
{
|
||||
ESP_ERROR_CHECK(nvs_flash_erase());
|
||||
ret = nvs_flash_init();
|
||||
}
|
||||
ESP_ERROR_CHECK(ret);
|
||||
persistence_init("miniature_town");
|
||||
|
||||
xTaskCreatePinnedToCore(led_matrix_init, "led_matrix", configMINIMAL_STACK_SIZE * 2, NULL, 5, NULL, 1);
|
||||
ble_init(NULL);
|
||||
|
Reference in New Issue
Block a user