TFT st7789 send http
Moderators: grovkillen, Stuntteam, TD-er
TFT st7789 send http
Hi,
This is working,
http://192.168.1.82/control?cmd=st7789cmd,on
http://192.168.1.82/control?cmd=st7789cmd,off
http://192.168.1.82/control?cmd=st7789cmd,clear
But this is not working? I did read the wiki, but can't find the answer...
http://192.168.1.82/control?cmd=st7789cmd,txt,test
I Want to send text to the tft screen
This is working,
http://192.168.1.82/control?cmd=st7789cmd,on
http://192.168.1.82/control?cmd=st7789cmd,off
http://192.168.1.82/control?cmd=st7789cmd,clear
But this is not working? I did read the wiki, but can't find the answer...
http://192.168.1.82/control?cmd=st7789cmd,txt,test
I Want to send text to the tft screen
Re: TFT st7789 send http
Close but no cigar
For the 'regular' commands, provided via the AdafruitGFX_Helper extension, the commands are not postfixed with cmd, so the command to display text on the display would be st7789,txt,text or st7789,txt,"text containing spaces, and/or commas".
You might consider using st7789,txz,x,y,"test to display at a specific position", where you have fine control over the exact position the text is displayed.
Full command documentation for the ST77xx plugin is found here (you can scroll up for the complete plugin documentation)

For the 'regular' commands, provided via the AdafruitGFX_Helper extension, the commands are not postfixed with cmd, so the command to display text on the display would be st7789,txt,text or st7789,txt,"text containing spaces, and/or commas".
You might consider using st7789,txz,x,y,"test to display at a specific position", where you have fine control over the exact position the text is displayed.
Full command documentation for the ST77xx plugin is found here (you can scroll up for the complete plugin documentation)
/Ton (PayPal.me)
Re: TFT st7789 send http
Thanks!! That worked.Ath wrote: ↑28 Apr 2023, 19:17 Close but no cigar![]()
For the 'regular' commands, provided via the AdafruitGFX_Helper extension, the commands are not postfixed with cmd, so the command to display text on the display would be st7789,txt,text or st7789,txt,"text containing spaces, and/or commas".
You might consider using st7789,txz,x,y,"test to display at a specific position", where you have fine control over the exact position the text is displayed.
Full command documentation for the ST77xx plugin is found here (you can scroll up for the complete plugin documentation)
192.168.1.82/control?cmd=st7789,txl,3,"TEST TEXT"
Is it also possible to make the background of a txl in the color red? I see color settings, but how to use it in a line.
Re: TFT st7789 send http
Have a look at the txtfull command that has a lot of parameters including foreground and background colors, or the txc command that allows to change the standard colors (foreground and background).
/Ton (PayPal.me)
Re: TFT st7789 send http
I have seen that, but i can get it in a line, txl
It looks like it is only possible with pixel position, not in a line height.
Re: TFT st7789 send http
That depends on the 'Text Coordinates in col/row' setting in the Device Configuration page, txl always uses the row/col setting, instead of pixels, by design.
Edit:
txl was added on request for P141 Nokia 5110 display, so send the (few only) lines that can be displayed on that display.
You can send a txc command, setting the desired color, then the txl command to display the text, and restore the colors using a new txc command. That can not be combined in a single command.
/Ton (PayPal.me)
Re: TFT st7789 send http
Thanks for your support! It is working.
I have another question for the TFT st7789, i will make a new topic for that.
viewtopic.php?t=9631
I have another question for the TFT st7789, i will make a new topic for that.
viewtopic.php?t=9631
Re: TFT st7789 send http
Hi,
192.168.1.xx/control?cmd=st7789,txtfull,1,5,3,<foreColor=current>,blue, <textPrintMode=current>,<maxTextWidthPixels=0>," Tekst "
With this http rule i have backgroud color, and text. Works fine.
Is there also a rule to clear this rule with text and colour? Not the complete screen.
Mark
192.168.1.xx/control?cmd=st7789,txtfull,1,5,3,<foreColor=current>,blue, <textPrintMode=current>,<maxTextWidthPixels=0>," Tekst "
With this http rule i have backgroud color, and text. Works fine.
Is there also a rule to clear this rule with text and colour? Not the complete screen.
Mark
Re: TFT st7789 send http
That is possible. But then will not remove the color. And there is no color that is the same as the screen is.
Re: TFT st7789 send http
Normally, using the same background color as the foreground color, it should result in 'transparent', though I haven't tested that using spaces. The default background color is black (you can use color names, as documented)
/Ton (PayPal.me)
Re: TFT st7789 send http
I did test that. But black is white. It looks like that the colors do not match the colors in the http rule.
The background is black.
Who is online
Users browsing this forum: No registered users and 8 guests