Hi Guys
I'm using the ST7789 display in conjunction with the node mcu esp32 and max6675 temp sensor it is all working. what my problem is is that the screen flickers because every time I print to screen I have to do a clear screen otherwise the new data just get written over the old data and is unreadable. Is there any way I can just write over the one line or just the section where the temp changes. I have tried writing a blank string " " and that dose not work so not sure what else to do.
Also is there any way to display the degree symbol on the display I have tried the "Alt 0176" to get it to display in the string which it dose but not display on the display PV = 25 C
ST7789 display
-
- Posts: 125
- http://meble-kuchenne.info.pl
- Joined: Mon Mar 08, 2021 11:25 am
- Location: Cape Town South Africa
- Has thanked: 40 times
- Been thanked: 11 times
-
- Matrix Staff
- Posts: 1475
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 522 times
- Been thanked: 477 times
Re: ST7789 display
The whole background colour is set within the display properties.
If you want the text to have a different background colour to the default, then you can add a SetBackgroundColour component maco just before the main loop.
If you still have an issue, then if post your flowchart (or pm if private) I will sort it out for you.
If you want the text to have a different background colour to the default, then you can add a SetBackgroundColour component maco just before the main loop.
If you still have an issue, then if post your flowchart (or pm if private) I will sort it out for you.
Martin
Re: ST7789 display
"Also is there any way to display the degree symbol on the display I have tried the "Alt 0176" to get it to display in the string which it dose but not display on the display PV = 25 C"
Same here
Same here
-
- Matrix Staff
- Posts: 1767
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 449 times
- Been thanked: 610 times
Re: ST7789 display
The degree symbol is not currently part of the font set, you can maybe add it manually by drawing a circle in the right place, not ideal but should allow you to procced. If it's something you think we should support then I can look into ways to try and support it.
Another way might be to override one of the existing characters in the font component.
These are the characters in the current default font, let me know if there's a specific character you want to replace with a degrees symbol and also please confirm you are using the default font.
!''#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1767
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 449 times
- Been thanked: 610 times
Re: ST7789 display
I've had a play around with the components and managed to add the degree symbol support for the Default and System fonts at standard ASCII positions 167 and 248, please shout if you would like it added to other fonts as it's now quite easy to do. Also any other missing characters can maybe be added in a similar way. e.g. Ω or ²
I'll get the update pushed to the update system now.
I'll get the update pushed to the update system now.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel