Minor fixes

This commit is contained in:
Carsten Schmiemann 2018-09-28 05:21:49 +02:00
parent e01250db1d
commit d98f1c4321
5 changed files with 39 additions and 35 deletions

Binary file not shown.

View File

@ -1 +1 @@
038a2af16b7c85a15994c1dfcc3294cf5461948a
d0b2a87cf0a77e923379f54bea377ed7b8197882

View File

@ -14,6 +14,10 @@
#include <ESP8266FtpServer.h>
#include <ArduinoOTA.h>
//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);

33
src/lcd_custom_symbol.h Normal file
View 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
View File

@ -0,0 +1 @@