fix WiFiEnable to pin 3, fix presentation of energy

This commit is contained in:
hg
2015-05-18 22:07:33 +02:00
parent 5e433458c7
commit 023e557014
3 changed files with 16 additions and 15 deletions

View File

@ -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);