Skip to content

Instantly share code, notes, and snippets.

@PecceG2
Created December 19, 2021 00:56
Show Gist options
  • Save PecceG2/720b4f0ed812c4fab56a76928bde384c to your computer and use it in GitHub Desktop.
Save PecceG2/720b4f0ed812c4fab56a76928bde384c to your computer and use it in GitHub Desktop.
ESPHome LCD Screen lcd_pcf8574 draw / print degree symbol
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. ------
@PecceG2
Copy link
Author

PecceG2 commented Sep 1, 2022

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.

@Cenedd
Copy link

Cenedd commented Jun 23, 2024

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