diff --git a/.pioenvs/.sconsign.dblite b/.pioenvs/.sconsign.dblite index 02be9ce..15c8566 100644 Binary files a/.pioenvs/.sconsign.dblite and b/.pioenvs/.sconsign.dblite differ diff --git a/.pioenvs/structure.hash b/.pioenvs/structure.hash index cf7bf3e..205dda6 100644 --- a/.pioenvs/structure.hash +++ b/.pioenvs/structure.hash @@ -1 +1 @@ -038a2af16b7c85a15994c1dfcc3294cf5461948a \ No newline at end of file +d0b2a87cf0a77e923379f54bea377ed7b8197882 \ No newline at end of file diff --git a/src/PowerAnalyzer.ino b/src/PowerAnalyzer.ino index 45e35c2..16b86e7 100644 --- a/src/PowerAnalyzer.ino +++ b/src/PowerAnalyzer.ino @@ -14,6 +14,10 @@ #include #include +//Program parts +#include "lcd_custom_symbol.h" +#include "webserver_config.h" + //Library Config LiquidCrystal_I2C lcd(0x27,20,4); INA219 ina219; @@ -70,40 +74,6 @@ bool lcd_light = true, lcd_minmax = false, lcd_cleared = true, wifi_enabled = tr bool measuring_run = false, measuring_init = false, reset_actual = false, reset_minmax = false, battery_low = false, errorID = false; unsigned long lastread = 0, tick, previousMillisReadData = 0, previousMillisDisplay = 0, data_timestamp = 0, button3timer = 0; -//Custom LCD Characters -byte grad[8] = { - 0b01100, - 0b10010, - 0b10010, - 0b01100, - 0b00000, - 0b00000, - 0b00000, - 0b00000 -}; - -byte sollwert[8] = { - 0b00000, - 0b00000, - 0b01111, - 0b00011, - 0b00101, - 0b01001, - 0b10000, - 0b00000 -}; - -byte batterie[8] = { - 0b01110, - 0b11011, - 0b10001, - 0b10001, - 0b10001, - 0b10001, - 0b10001, - 0b11111 -}; - void setup() { //Setup GPIO pinMode(led_error_pin, OUTPUT); diff --git a/src/lcd_custom_symbol.h b/src/lcd_custom_symbol.h new file mode 100644 index 0000000..49d8989 --- /dev/null +++ b/src/lcd_custom_symbol.h @@ -0,0 +1,33 @@ +//Custom LCD Characters +byte grad[8] = { + 0b01100, + 0b10010, + 0b10010, + 0b01100, + 0b00000, + 0b00000, + 0b00000, + 0b00000 +}; + +byte sollwert[8] = { + 0b00000, + 0b00000, + 0b01111, + 0b00011, + 0b00101, + 0b01001, + 0b10000, + 0b00000 +}; + +byte batterie[8] = { + 0b01110, + 0b11011, + 0b10001, + 0b10001, + 0b10001, + 0b10001, + 0b10001, + 0b11111 +}; \ No newline at end of file diff --git a/src/webserver_config.h b/src/webserver_config.h new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/webserver_config.h @@ -0,0 +1 @@ +