From 1d9ce2afc5267d4dd76f57460aad52c261a952be Mon Sep 17 00:00:00 2001 From: nepozs <56661567+nepozs@users.noreply.github.com> Date: Tue, 19 May 2020 01:10:03 +0200 Subject: [PATCH] Update tm1637.cpp (#1044) * Update tm1637.cpp Defined degree symbol. * remove fixed array size Co-authored-by: Guillermo Ruffino --- esphome/components/tm1637/tm1637.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/tm1637/tm1637.cpp b/esphome/components/tm1637/tm1637.cpp index ebf2fff9d6..d9b9a870ff 100644 --- a/esphome/components/tm1637/tm1637.cpp +++ b/esphome/components/tm1637/tm1637.cpp @@ -20,7 +20,7 @@ const uint8_t TM1637_UNKNOWN_CHAR = 0b11111111; // --- // D X // XABCDEFG -const uint8_t TM1637_ASCII_TO_RAW[94] PROGMEM = { +const uint8_t TM1637_ASCII_TO_RAW[] PROGMEM = { 0b00000000, // ' ', ord 0x20 0b10110000, // '!', ord 0x21 0b00100010, // '"', ord 0x22 @@ -115,6 +115,7 @@ const uint8_t TM1637_ASCII_TO_RAW[94] PROGMEM = { 0b00110001, // '{', ord 0x7B 0b00000110, // '|', ord 0x7C 0b00000111, // '}', ord 0x7D + 0b01100011, // '~', ord 0x7E (degree symbol) }; void TM1637Display::setup() { ESP_LOGCONFIG(TAG, "Setting up TM1637...");