2022-11-12 22:33:03 +08:00
|
|
|
#include "esp_log.h"
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include "freertos/task.h"
|
2022-11-13 17:05:41 +08:00
|
|
|
#include "light.c"
|
2022-11-12 22:33:03 +08:00
|
|
|
#include "sdkconfig.h"
|
2022-11-12 22:42:03 +08:00
|
|
|
#include "wifi.c"
|
2022-11-12 22:33:03 +08:00
|
|
|
|
2022-11-12 22:42:03 +08:00
|
|
|
static const char *TAG = "ScreenBgLight";
|
2022-11-12 22:33:03 +08:00
|
|
|
|
|
|
|
void app_main(void) {
|
2022-11-13 17:05:41 +08:00
|
|
|
light_init_strip();
|
|
|
|
vTaskDelay(pdMS_TO_TICKS(10));
|
|
|
|
light_play(light_mode_connection_wifi);
|
|
|
|
if (connect_wifi()) {
|
|
|
|
light_play(light_mode_idle);
|
2022-11-12 22:33:03 +08:00
|
|
|
}
|
|
|
|
}
|