st7789 and Rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Pencraft
Normal user
Posts: 10
Joined: 05 Dec 2023, 18:54

st7789 and Rules

#1 Post by Pencraft » 05 Dec 2023, 19:02

Good afternoon.
I connected the st7789 display.
In the rules I wrote this:

Code: Select all

on System#Boot do
st7789cmd,clear
LoopTimerSet,1,1
st7789,r,0,0,320,240,Blue
st7789,lh,21,320,Blue
st7789,lh,218,320,Blue
endon

on Rules#Timer=1 do
st7789,txp,40,50
st7789,txs,5
st7789,txc,Red 
st7789,txt,%systime%
st7789,txc,Blue 
st7789,txp,190,4
st7789,txs,2
st7789,txt," RSSI: %rssi%"
endon
But the numbers overlap each other.
IMG_8900.jpg
IMG_8900.jpg (158.72 KiB) Viewed 1465 times
What am I doing wrong?

User avatar
Ath
Normal user
Posts: 3522
Joined: 10 Jun 2018, 12:06
Location: NL

Re: st7789 and Rules

#2 Post by Ath » 05 Dec 2023, 19:08

If you add the background color to the 'txc' subcommand, it shouldn't try to draw the digits 'transparent', like the current result shows ;)
/Ton (PayPal.me)

Pencraft
Normal user
Posts: 10
Joined: 05 Dec 2023, 18:54

Re: st7789 and Rules

#3 Post by Pencraft » 05 Dec 2023, 19:19

Thank you.
Everything worked out.
:)

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests