fix WiFiEnable to pin 3, fix presentation of energy
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
#include <avr/wdt.h>
|
||||
|
||||
|
||||
const uint8_t WIFI_ENABLE_PIN = 4;
|
||||
const uint8_t WIFI_ENABLE_PIN = 3;
|
||||
|
||||
|
||||
LiquidCrystal lcd = LiquidCrystal(A0, A1, A2, A3, A4, A5);
|
||||
@ -69,8 +69,8 @@ void printWifiStatus() {
|
||||
|
||||
void setup() {
|
||||
pinMode(WIFI_ENABLE_PIN, INPUT_PULLUP);
|
||||
delay(100);
|
||||
wifiEnabled = true; // (digitalRead(WIFI_ENABLE_PIN) != 0);
|
||||
delay(500);
|
||||
wifiEnabled = (digitalRead(WIFI_ENABLE_PIN) != 0);
|
||||
|
||||
|
||||
Serial.begin(57600);
|
||||
|
Reference in New Issue
Block a user