mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
Update
wlan-startup preparation new images
This commit is contained in:
@@ -31,6 +31,7 @@ A 3d-printable housing can be found here: https://www.thingiverse.com/thing:4571
|
|||||||
|
|
||||||
##### Rolling - (2020-09-12)
|
##### Rolling - (2020-09-12)
|
||||||
|
|
||||||
|
* Changed WLAN-blinking: **5**-times short = no connection 3-times long = connected
|
||||||
* Option for mirroring input image
|
* Option for mirroring input image
|
||||||
* Update index.html
|
* Update index.html
|
||||||
|
|
||||||
|
|||||||
@@ -65,11 +65,11 @@ void wifi_connect(){
|
|||||||
ESP_ERROR_CHECK( esp_wifi_connect() );
|
ESP_ERROR_CHECK( esp_wifi_connect() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void blinkstatus(int dauer)
|
void blinkstatus(int dauer, int _anzahl)
|
||||||
{
|
{
|
||||||
gpio_reset_pin(BLINK_GPIO);
|
gpio_reset_pin(BLINK_GPIO);
|
||||||
gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);
|
gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);
|
||||||
for (int i = 0; i < 3; ++i)
|
for (int i = 0; i < _anzahl; ++i)
|
||||||
{
|
{
|
||||||
gpio_set_level(BLINK_GPIO, 0);
|
gpio_set_level(BLINK_GPIO, 0);
|
||||||
vTaskDelay(dauer / portTICK_PERIOD_MS);
|
vTaskDelay(dauer / portTICK_PERIOD_MS);
|
||||||
@@ -82,15 +82,15 @@ static esp_err_t event_handler(void *ctx, system_event_t *event)
|
|||||||
{
|
{
|
||||||
switch(event->event_id) {
|
switch(event->event_id) {
|
||||||
case SYSTEM_EVENT_STA_START:
|
case SYSTEM_EVENT_STA_START:
|
||||||
blinkstatus(200);
|
blinkstatus(200, 5);
|
||||||
wifi_connect();
|
wifi_connect();
|
||||||
break;
|
break;
|
||||||
case SYSTEM_EVENT_STA_GOT_IP:
|
case SYSTEM_EVENT_STA_GOT_IP:
|
||||||
xEventGroupSetBits(wifi_event_group, CONNECTED_BIT);
|
xEventGroupSetBits(wifi_event_group, CONNECTED_BIT);
|
||||||
blinkstatus(1000);
|
blinkstatus(1000, 3);
|
||||||
break;
|
break;
|
||||||
case SYSTEM_EVENT_STA_DISCONNECTED:
|
case SYSTEM_EVENT_STA_DISCONNECTED:
|
||||||
blinkstatus(200);
|
blinkstatus(200, 5);
|
||||||
esp_wifi_connect();
|
esp_wifi_connect();
|
||||||
xEventGroupClearBits(wifi_event_group, CONNECTED_BIT);
|
xEventGroupClearBits(wifi_event_group, CONNECTED_BIT);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 135 KiB After Width: | Height: | Size: 144 KiB |
BIN
images/index.png
BIN
images/index.png
Binary file not shown.
|
Before Width: | Height: | Size: 822 KiB After Width: | Height: | Size: 822 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 179 KiB |
Reference in New Issue
Block a user