Minor fixes
This commit is contained in:
parent
e01250db1d
commit
d98f1c4321
Binary file not shown.
|
@ -1 +1 @@
|
||||||
038a2af16b7c85a15994c1dfcc3294cf5461948a
|
d0b2a87cf0a77e923379f54bea377ed7b8197882
|
|
@ -14,6 +14,10 @@
|
||||||
#include <ESP8266FtpServer.h>
|
#include <ESP8266FtpServer.h>
|
||||||
#include <ArduinoOTA.h>
|
#include <ArduinoOTA.h>
|
||||||
|
|
||||||
|
//Program parts
|
||||||
|
#include "lcd_custom_symbol.h"
|
||||||
|
#include "webserver_config.h"
|
||||||
|
|
||||||
//Library Config
|
//Library Config
|
||||||
LiquidCrystal_I2C lcd(0x27,20,4);
|
LiquidCrystal_I2C lcd(0x27,20,4);
|
||||||
INA219 ina219;
|
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;
|
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;
|
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() {
|
void setup() {
|
||||||
//Setup GPIO
|
//Setup GPIO
|
||||||
pinMode(led_error_pin, OUTPUT);
|
pinMode(led_error_pin, OUTPUT);
|
||||||
|
|
33
src/lcd_custom_symbol.h
Normal file
33
src/lcd_custom_symbol.h
Normal file
|
@ -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
|
||||||
|
};
|
1
src/webserver_config.h
Normal file
1
src/webserver_config.h
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
Loading…
Reference in a new issue