mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 23:14:54 +01:00
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:
parent
53986279d7
commit
1d9ce2afc5
1 changed files with 2 additions and 1 deletions
|
@ -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...");
|
||||
|
|
Loading…
Reference in a new issue