diff --git a/README.md b/README.md index ae8d0a0..9d67e20 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ I suggest you set it to standard time and pretend it's in sync with the sun. * Each pixel in the bottom row is 25 seconds * There are four pixels around the bottom that move every 5 seconds + Philosophy ---------- @@ -83,4 +84,3 @@ but if you want to make NeoPixel art, think hard about what the end result should look like. It's not enough to make a cool light show; it has to make people wonder "what is that for?" - diff --git a/wallart.ino b/wallart.ino index 171d024..85ef703 100644 --- a/wallart.ino +++ b/wallart.ino @@ -267,10 +267,10 @@ void displayTime(unsigned long duration = 20 * SECOND) { // Outer: 5s uint8_t s = (mmss/5) % 5; - grid[64 - 7 - 1] = CHSV(HUE_PURPLE, 64, (s==1)?64:0); - grid[64 - 15 - 1] = CHSV(HUE_PURPLE, 64, (s==2)?64:0); - grid[64 - 8 - 1] = CHSV(HUE_PURPLE, 64, (s==3)?64:0); - grid[64 - 0 - 1] = CHSV(HUE_PURPLE, 64, (s==4)?64:0); + grid[64 - 7 - 1] = CHSV(HUE_PURPLE, 128, (s==1)?96:0); + grid[64 - 15 - 1] = CHSV(HUE_PURPLE, 128, (s==2)?96:0); + grid[64 - 8 - 1] = CHSV(HUE_PURPLE, 128, (s==3)?96:0); + grid[64 - 0 - 1] = CHSV(HUE_PURPLE, 128, (s==4)?96:0); for (int i = 0; i < 12; i++) { // Omit first and last position on a row @@ -289,15 +289,6 @@ void displayTime(unsigned long duration = 20 * SECOND) { } } -void adjustBrightness() { - int hh = timeClient.getHours(); - if ((hh >= DAY_BEGIN) && (hh < DAY_END)) { - FastLED.setBrightness(DAY_BRIGHTNESS); - } else { - FastLED.setBrightness(NIGHT_BRIGHTNESS); - } -} - void loop() { Picker p; uint8_t getprob = 4; @@ -307,7 +298,7 @@ void loop() { timeClient.update(); if (timeClient.isTimeSet()) { int hh = timeClient.getHours(); - day = ((hh > DAY_BEGIN) && (hh < DAY_END)); + day = ((hh >= DAY_BEGIN) && (hh < DAY_END)); } FastLED.setBrightness(day?DAY_BRIGHTNESS:NIGHT_BRIGHTNESS);