mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
Rolling 20210913
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
#include "server_main.h"
|
||||
#include "server_camera.h"
|
||||
|
||||
// #include "jomjol_WS2812Slow.h"
|
||||
#include "SmartLeds.h"
|
||||
|
||||
|
||||
#define __SD_USE_ONE_LINE_MODE__
|
||||
|
||||
@@ -135,8 +138,12 @@ void task_NoSDBlink(void *pvParameter)
|
||||
vTaskDelete(NULL); //Delete this task if it exits from the loop above
|
||||
}
|
||||
|
||||
|
||||
extern "C" void app_main(void)
|
||||
{
|
||||
TickType_t xDelay;
|
||||
|
||||
|
||||
printf("Do Reset Camera\n");
|
||||
PowerResetCamera();
|
||||
Camera.InitCam();
|
||||
@@ -171,7 +178,7 @@ extern "C" void app_main(void)
|
||||
|
||||
wifi_init_sta(ssid, passwd, hostname, ip, gateway, netmask, dns);
|
||||
|
||||
TickType_t xDelay;
|
||||
|
||||
xDelay = 2000 / portTICK_PERIOD_MS;
|
||||
printf("main: sleep for : %ldms\n", (long) xDelay);
|
||||
// LogFile.WriteToFile("Startsequence 06");
|
||||
@@ -184,6 +191,9 @@ extern "C" void app_main(void)
|
||||
LogFile.WriteToFile("=============================================================================================");
|
||||
LogFile.SwitchOnOff(false);
|
||||
|
||||
|
||||
|
||||
|
||||
std::string zw = gettimestring("%Y%m%d-%H%M%S");
|
||||
printf("time %s\n", zw.c_str());
|
||||
|
||||
@@ -206,5 +216,26 @@ extern "C" void app_main(void)
|
||||
|
||||
printf("vor dotautostart\n");
|
||||
TFliteDoAutoStart();
|
||||
|
||||
////////////////////////// Test SmartLED Liberary //////////////////////////////////////////////
|
||||
/*
|
||||
xDelay = 5000 / portTICK_PERIOD_MS;
|
||||
printf("main: sleep for : %ldms\n", (long) xDelay);
|
||||
// LogFile.WriteToFile("Startsequence 06");
|
||||
vTaskDelay( xDelay );
|
||||
|
||||
SmartLed leds( LED_WS2812, 2, GPIO_NUM_12, 0, DoubleBuffer );
|
||||
|
||||
|
||||
leds[ 0 ] = Rgb{ 255, 0, 0 };
|
||||
leds[ 1 ] = Rgb{ 255, 255, 255 };
|
||||
leds.show();
|
||||
|
||||
vTaskDelay( xDelay );
|
||||
|
||||
leds[ 0 ] = Rgb{ 0, 0, 0 };
|
||||
leds[ 1 ] = Rgb{ 0, 0, 0 };
|
||||
leds.show();
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user