Created
December 19, 2021 00:56
-
-
Save PecceG2/720b4f0ed812c4fab56a76928bde384c to your computer and use it in GitHub Desktop.
ESPHome LCD Screen lcd_pcf8574 draw / print degree symbol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
display: | |
- platform: lcd_pcf8574 | |
dimensions: 16x2 | |
address: 0x27 | |
lambda: |- | |
it.printf(0, 0, "%c", 0xDF); | |
----- This print degree symbol on LCD (0xDF) at col 0, row 0. ------ |
Thanks for that, very useful on a screen that just didn't want to play ball!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If it doesn't work, on some screen firmwares you can try as follows (use ~ as degree symbol):
it.printf(0, 0, "~");
Thanks @jsuanet for the idea.