From bebbc539ccfe773af32fee91efd79f6f309b511c Mon Sep 17 00:00:00 2001 From: telegnom Date: Sun, 24 Feb 2019 00:26:57 +0100 Subject: [PATCH] brightness in global setting --- wordclock/wordclock.ino | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/wordclock/wordclock.ino b/wordclock/wordclock.ino index 1168760..a8b4d3c 100644 --- a/wordclock/wordclock.ino +++ b/wordclock/wordclock.ino @@ -22,6 +22,7 @@ #include #include +#define BRIGHTNESS 200 #define NUM_LEDS 43 #define DATA_PIN 5 @@ -64,8 +65,8 @@ int clockWords[22][10] = { {0,-1,-1,-1,-1,-1,-1,-1,-1,-1}, // es 0 {1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, // ist 1 {2,3,-1,-1,-1,-1,-1,-1,-1,-1}, // fuenf 2 - {7,8,-1,-1,-1,-1,-1,-1,-1,-1}, // zehn 3 - {4,5,6,-1,-1,-1,-1,-1,-1,-1}, // zwanzig 4 + {4,5,-1,-1,-1,-1,-1,-1,-1,-1}, // zehn 3 + {6,7,8,-1,-1,-1,-1,-1,-1,-1}, // zwanzig 4 {9,10,11,-1,-1,-1,-1,-1,-1,-1}, // viertel 5 {12,-1,-1,-1,-1,-1,-1,-1,-1,-1}, // vor 6 {13,14,-1,-1,-1,-1,-1,-1,-1,-1}, // nach 8 @@ -80,9 +81,9 @@ int clockWords[22][10] = { {31,32,-1,-1,-1,-1,-1,-1,-1,-1}, // acht 16 {33,34,35,-1,-1,-1,-1,-1,-1,-1}, // sieben 17 {36,37,38,-1,-1,-1,-1,-1,-1,-1}, // zwölf 18 - {41,42,-1,-1,-1,-1,-1,-1,-1,-1}, // zehn 19 - {40,-1,-1,-1,-1,-1,-1,-1,-1,-1}, // elf 20 - {39,-1,-1,-1,-1,-1,-1,-1,-1}, // uhr 21 + {39,40,-1,-1,-1,-1,-1,-1,-1,-1}, // zehn 19 + {41,-1,-1,-1,-1,-1,-1,-1,-1,-1}, // elf 20 + {42,-1,-1,-1,-1,-1,-1,-1,-1}, // uhr 21 }; WiFiUDP Udp; @@ -108,7 +109,7 @@ void noWifi() { for(int i=0; i= 0) { - leds[clockWords[word][i]] = CHSV(color, 255, 128); + leds[clockWords[word][i]] = CHSV(color, 255, BRIGHTNESS); Serial.print(clockWords[word][i]); Serial.print(" "); }