From b691019663260c615d8a4193ab1a7a4de321f1c3 Mon Sep 17 00:00:00 2001 From: Stefan Heinrichsen Date: Sun, 7 Apr 2024 15:52:07 +0200 Subject: [PATCH] kleiner Fix weil Segment F bei Ziffer 1 immer geleuchtet hat --- .../ClockSketch_v7-7SCv3-TFO-3.ino | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/ClockSketch_v7-7SCv3-TFO-3/ClockSketch_v7-7SCv3-TFO-3.ino b/ClockSketch_v7-7SCv3-TFO-3/ClockSketch_v7-7SCv3-TFO-3.ino index eba07d9..a0da729 100644 --- a/ClockSketch_v7-7SCv3-TFO-3/ClockSketch_v7-7SCv3-TFO-3.ino +++ b/ClockSketch_v7-7SCv3-TFO-3/ClockSketch_v7-7SCv3-TFO-3.ino @@ -102,7 +102,7 @@ RtcDS3231 Rtc(Wire); #ifdef USEWIFI const bool useWPS = false; // set to false to disable WPS and use credentials below const char *wifiSSID = "unhb.de"; -const char *wifiPWD = "sagichnicht"; +const char *wifiPWD = "wurstwasser"; #endif /* End WiFi config/parameters--------------------------------------------------------------------------- */ @@ -328,21 +328,21 @@ const uint16_t segGroups[42][2] PROGMEM = { /* segments 0-27, 4 digits x 7 segments */ /* digit position 0 */ - {1, 2}, // top, a - {3, 11}, // top right, b + {1, 2}, // top, a + {3, 11}, // top right, b {19, 27}, // bottom right, c {25, 26}, // bottom, d {24, 16}, // bottom left, e - {0, 8}, // top left, f - {9, 10}, // center, g + {0, 8}, // top left, f + {9, 10}, // center, g /* digit position 1 */ - {5, 6}, // top, a - {7, 15}, // top right, b - {23, 31}, // bottom right, c + {5, 6}, // top, a + {7, 15}, // top right, b + {23, 31}, // bottom right, c {29, 30}, // bottom, d {28, 20}, // bottom left, e {04, 12}, // top left, f - {13, 14}, // center, g + {13, 14}, // center, g /* digit position 2 */ {33, 34}, // top, a {35, 43}, // top right, b @@ -352,13 +352,13 @@ const uint16_t segGroups[42][2] PROGMEM = { {32, 40}, // top left, f {41, 42}, // center, g /* digit position 3 */ - {37, 38}, // top, a - {39, 47}, // top right, b - {55, 63}, // bottom right, c - {61, 62}, // bottom, d - {60, 52}, // bottom left, e - {36, 44}, // top left, f - {45, 46}, // center, g + {37, 38}, // top, a + {39, 47}, // top right, b + {55, 63}, // bottom right, c + {61, 62}, // bottom, d + {60, 52}, // bottom left, e + {36, 44}, // top left, f + {45, 46}, // center, g #if (LED_DIGITS == 6) // add two digits, 14 segments, only used if LED_DIGITS is 6... /* segments 28-41, 6 digits x 7 segments */ /* (bogus on some models which don't support 6 digits) */ @@ -383,8 +383,8 @@ const uint16_t segGroups[42][2] PROGMEM = { }; #if (LED_DIGITS == 4) -const uint16_t upperDots[2] PROGMEM = {18}; // leds inside the upper dots (right on L7-QBE) -const uint16_t lowerDots[2] PROGMEM = {19}; // leds inside the lower dots (left on L7-QBE) +const uint16_t upperDots[2] PROGMEM = {17}; // leds inside the upper dots (right on L7-QBE) +const uint16_t lowerDots[2] PROGMEM = {18}; // leds inside the lower dots (left on L7-QBE) #endif #if (LED_DIGITS == 6) @@ -392,8 +392,8 @@ const uint16_t upperDots[4] PROGMEM = {49, 50, 103, 104}; // all the leds inside const uint16_t lowerDots[4] PROGMEM = {52, 53, 106, 107}; // all the leds inside the lower dots (bogus values on some models which don't support 6 digits) #endif -const uint16_t amLight[1] PROGMEM = {21}; -const uint16_t pmLight[1] PROGMEM = {22}; +const uint16_t amLight[1] PROGMEM = {20}; +const uint16_t pmLight[1] PROGMEM = {21}; // Using above arrays it's very easy to "talk" to the segments. Simply use 0-6 for the first 7 segments, add 7 (7-13) for the second one, 14-20 for third.... const uint8_t digits[21][7] PROGMEM = {