Degree symbol on display
-
Hi all
I'm unable to print the "degree symbol" (°) on the integrated LCD.
I tried different options like: char(176), char(223), 0XDF, 0XB0, even the binary version. In the serial monitor everything works fine, but not on the LCD. Is it possible, that the used driver of the LCD isn't able to show the sign, meaning it can only print the ASCII symbols up to 128?
Thanks. -
@bladehunt0 Hi, which model of M5Stack is this?
Core 2 and Core basic can use different graphics.
-Terry -
Hi.
I have the M5GO and the Core basic.
BR Alex
-
@bladehunt0 Well, I tried using M5.LCD.print(º) but nothing on the LCD after upload!
I think you are right that it does not support "extended ASCII", but...with a graphical interface, anything is possible...but with a ton of trial_and_error.
-Terry -
@teastain yeah. It seems that, if I can't life with the asterisk, I'll have to draw a circle 😅
TyBR
Alex -
@bladehunt0
I know that this is not an answer to your problem...I use a Core Basic to control the HVAC in my home office and the top reading is:
Room Temp 24.3
Fortunately the % sign is supported for Humidity!!!
Here is an experiment!M5.Lcd.setCursor(272, 98);
M5.Lcd.setFreeFont(FS9);
M5.Lcd.print("o");
worked surprisingly well.
The "98" is 16 pixels higher than the reading.
https://imgur.com/qMvmT7s -
Here the answer:
M5.Lcd.print("Temp:"); M5.Lcd.print(t,0); M5.Lcd.print(char(247));M5.Lcd.println("C");
I guess you have found it meanwhile, but perhaps it is useful for others.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login