diff options
author | 2018-02-15 11:49:15 +0200 | |
---|---|---|
committer | 2018-02-15 11:49:15 +0200 | |
commit | 9b17022133cb27ac654a2ace9027b3832be4fb8d (patch) | |
tree | f0c3f138e119982c950b9e73596c1d276d1d30d4 /src/tempmodule | |
parent | 64d6165f21664ec9bd73853a2fe631cd08a06925 (diff) | |
download | coffeetemp-9b17022133cb27ac654a2ace9027b3832be4fb8d.tar.gz coffeetemp-9b17022133cb27ac654a2ace9027b3832be4fb8d.tar.bz2 coffeetemp-9b17022133cb27ac654a2ace9027b3832be4fb8d.zip |
tempmodule: the iled is actually off when the pin is HIGH, not LOW, who could have guessed?
Diffstat (limited to 'src/tempmodule')
-rw-r--r-- | src/tempmodule/main.ino | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tempmodule/main.ino b/src/tempmodule/main.ino index 83c3d6f..5e6285f 100644 --- a/src/tempmodule/main.ino +++ b/src/tempmodule/main.ino @@ -54,6 +54,7 @@ void wifiled_toggle(void); void setup(void) { pinMode(iled, OUTPUT); + digitalWrite(iled, HIGH); pinMode(wifiled, OUTPUT); pinMode(wifibutton, INPUT); indicator_init(0, NULL); @@ -165,9 +166,9 @@ static void wifi_disconnect(void) static void blink_led(const int pin, const int ontime, const int offtime) { - digitalWrite(pin, HIGH); - delay(ontime); digitalWrite(pin, LOW); + delay(ontime); + digitalWrite(pin, HIGH); delay(offtime); } |