diff --git a/README.md b/README.md index 36dd4488..cadbdea6 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ A 3d-printable housing can be found here: https://www.thingiverse.com/thing:4571 ##### Rolling - (2020-09-12) +* Changed WLAN-blinking: **5**-times short = no connection 3-times long = connected * Option for mirroring input image * Update index.html diff --git a/code/lib/connect_wlan/connect_wlan.cpp b/code/lib/connect_wlan/connect_wlan.cpp index 19f72f5e..da65a3fb 100644 --- a/code/lib/connect_wlan/connect_wlan.cpp +++ b/code/lib/connect_wlan/connect_wlan.cpp @@ -65,11 +65,11 @@ void wifi_connect(){ ESP_ERROR_CHECK( esp_wifi_connect() ); } -void blinkstatus(int dauer) +void blinkstatus(int dauer, int _anzahl) { gpio_reset_pin(BLINK_GPIO); 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); 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) { case SYSTEM_EVENT_STA_START: - blinkstatus(200); + blinkstatus(200, 5); wifi_connect(); break; case SYSTEM_EVENT_STA_GOT_IP: xEventGroupSetBits(wifi_event_group, CONNECTED_BIT); - blinkstatus(1000); + blinkstatus(1000, 3); break; case SYSTEM_EVENT_STA_DISCONNECTED: - blinkstatus(200); + blinkstatus(200, 5); esp_wifi_connect(); xEventGroupClearBits(wifi_event_group, CONNECTED_BIT); break; diff --git a/firmware/firmware.bin b/firmware/firmware.bin index 5b19625c..b0dec0b4 100644 Binary files a/firmware/firmware.bin and b/firmware/firmware.bin differ diff --git a/firmware/html.zip b/firmware/html.zip index 75da32f1..65b46930 100644 Binary files a/firmware/html.zip and b/firmware/html.zip differ diff --git a/images/edit_reference.jpg b/images/edit_reference.jpg index 667d2e4b..4da85d72 100644 Binary files a/images/edit_reference.jpg and b/images/edit_reference.jpg differ diff --git a/images/index.png b/images/index.png index d9178d39..555e24c3 100644 Binary files a/images/index.png and b/images/index.png differ diff --git a/images/watermeter.jpg b/images/watermeter.jpg index 4612570c..095b15ce 100644 Binary files a/images/watermeter.jpg and b/images/watermeter.jpg differ