mirror of
https://github.com/esphome/esphome.git
synced 2025-01-02 18:27:55 +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
@ -20,7 +20,7 @@ const uint8_t TM1637_UNKNOWN_CHAR = 0b11111111;
|
|||||||
// ---
|
// ---
|
||||||
// D X
|
// D X
|
||||||
// XABCDEFG
|
// XABCDEFG
|
||||||
const uint8_t TM1637_ASCII_TO_RAW[94] PROGMEM = {
|
const uint8_t TM1637_ASCII_TO_RAW[] PROGMEM = {
|
||||||
0b00000000, // ' ', ord 0x20
|
0b00000000, // ' ', ord 0x20
|
||||||
0b10110000, // '!', ord 0x21
|
0b10110000, // '!', ord 0x21
|
||||||
0b00100010, // '"', ord 0x22
|
0b00100010, // '"', ord 0x22
|
||||||
@ -115,6 +115,7 @@ const uint8_t TM1637_ASCII_TO_RAW[94] PROGMEM = {
|
|||||||
0b00110001, // '{', ord 0x7B
|
0b00110001, // '{', ord 0x7B
|
||||||
0b00000110, // '|', ord 0x7C
|
0b00000110, // '|', ord 0x7C
|
||||||
0b00000111, // '}', ord 0x7D
|
0b00000111, // '}', ord 0x7D
|
||||||
|
0b01100011, // '~', ord 0x7E (degree symbol)
|
||||||
};
|
};
|
||||||
void TM1637Display::setup() {
|
void TM1637Display::setup() {
|
||||||
ESP_LOGCONFIG(TAG, "Setting up TM1637...");
|
ESP_LOGCONFIG(TAG, "Setting up TM1637...");
|
||||||
|
Loading…
Reference in New Issue
Block a user