kleiner Fix weil Segment F bei Ziffer 1 immer geleuchtet hat
This commit is contained in:
parent
9507532fa1
commit
b691019663
1 changed files with 20 additions and 20 deletions
|
@ -102,7 +102,7 @@ RtcDS3231<TwoWire> Rtc(Wire);
|
||||||
#ifdef USEWIFI
|
#ifdef USEWIFI
|
||||||
const bool useWPS = false; // set to false to disable WPS and use credentials below
|
const bool useWPS = false; // set to false to disable WPS and use credentials below
|
||||||
const char *wifiSSID = "unhb.de";
|
const char *wifiSSID = "unhb.de";
|
||||||
const char *wifiPWD = "sagichnicht";
|
const char *wifiPWD = "wurstwasser";
|
||||||
#endif
|
#endif
|
||||||
/* End WiFi config/parameters--------------------------------------------------------------------------- */
|
/* End WiFi config/parameters--------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
@ -328,21 +328,21 @@ const uint16_t segGroups[42][2] PROGMEM = {
|
||||||
|
|
||||||
/* segments 0-27, 4 digits x 7 segments */
|
/* segments 0-27, 4 digits x 7 segments */
|
||||||
/* digit position 0 */
|
/* digit position 0 */
|
||||||
{1, 2}, // top, a
|
{1, 2}, // top, a
|
||||||
{3, 11}, // top right, b
|
{3, 11}, // top right, b
|
||||||
{19, 27}, // bottom right, c
|
{19, 27}, // bottom right, c
|
||||||
{25, 26}, // bottom, d
|
{25, 26}, // bottom, d
|
||||||
{24, 16}, // bottom left, e
|
{24, 16}, // bottom left, e
|
||||||
{0, 8}, // top left, f
|
{0, 8}, // top left, f
|
||||||
{9, 10}, // center, g
|
{9, 10}, // center, g
|
||||||
/* digit position 1 */
|
/* digit position 1 */
|
||||||
{5, 6}, // top, a
|
{5, 6}, // top, a
|
||||||
{7, 15}, // top right, b
|
{7, 15}, // top right, b
|
||||||
{23, 31}, // bottom right, c
|
{23, 31}, // bottom right, c
|
||||||
{29, 30}, // bottom, d
|
{29, 30}, // bottom, d
|
||||||
{28, 20}, // bottom left, e
|
{28, 20}, // bottom left, e
|
||||||
{04, 12}, // top left, f
|
{04, 12}, // top left, f
|
||||||
{13, 14}, // center, g
|
{13, 14}, // center, g
|
||||||
/* digit position 2 */
|
/* digit position 2 */
|
||||||
{33, 34}, // top, a
|
{33, 34}, // top, a
|
||||||
{35, 43}, // top right, b
|
{35, 43}, // top right, b
|
||||||
|
@ -352,13 +352,13 @@ const uint16_t segGroups[42][2] PROGMEM = {
|
||||||
{32, 40}, // top left, f
|
{32, 40}, // top left, f
|
||||||
{41, 42}, // center, g
|
{41, 42}, // center, g
|
||||||
/* digit position 3 */
|
/* digit position 3 */
|
||||||
{37, 38}, // top, a
|
{37, 38}, // top, a
|
||||||
{39, 47}, // top right, b
|
{39, 47}, // top right, b
|
||||||
{55, 63}, // bottom right, c
|
{55, 63}, // bottom right, c
|
||||||
{61, 62}, // bottom, d
|
{61, 62}, // bottom, d
|
||||||
{60, 52}, // bottom left, e
|
{60, 52}, // bottom left, e
|
||||||
{36, 44}, // top left, f
|
{36, 44}, // top left, f
|
||||||
{45, 46}, // center, g
|
{45, 46}, // center, g
|
||||||
#if (LED_DIGITS == 6) // add two digits, 14 segments, only used if LED_DIGITS is 6...
|
#if (LED_DIGITS == 6) // add two digits, 14 segments, only used if LED_DIGITS is 6...
|
||||||
/* segments 28-41, 6 digits x 7 segments */
|
/* segments 28-41, 6 digits x 7 segments */
|
||||||
/* (bogus on some models which don't support 6 digits) */
|
/* (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)
|
#if (LED_DIGITS == 4)
|
||||||
const uint16_t upperDots[2] PROGMEM = {18}; // leds inside the upper dots (right 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 = {19}; // leds inside the lower dots (left on L7-QBE)
|
const uint16_t lowerDots[2] PROGMEM = {18}; // leds inside the lower dots (left on L7-QBE)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (LED_DIGITS == 6)
|
#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)
|
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
|
#endif
|
||||||
|
|
||||||
const uint16_t amLight[1] PROGMEM = {21};
|
const uint16_t amLight[1] PROGMEM = {20};
|
||||||
const uint16_t pmLight[1] PROGMEM = {22};
|
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....
|
// 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 = {
|
const uint8_t digits[21][7] PROGMEM = {
|
||||||
|
|
Loading…
Reference in a new issue