Update tm1637.cpp (#1044)

* Update tm1637.cpp

Defined degree symbol.

* remove fixed array size

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
nepozs 2020-05-19 01:10:03 +02:00 committed by GitHub
parent 53986279d7
commit 1d9ce2afc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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...");