Page 1 of 1

Display commands TFT on the ESP8266

Posted: 09 May 2021, 20:12
by Dondolo
Hi,

I have installed this version "ESP_Easy_mega_20210503_display_ESP8266_4M1M".

I can control the TFT display via http with all commands from rules from another ESP.
e.g.
SendToHTTP 192.168.178.38,80,"/control?cmd=tftcmd,clear"
SendToHTTP 192.168.178.38,80,"/control?cmd=tft,l,160,20,160,220,black"
SendToHTTP 192.168.178.38,80,"/control?cmd=tft,l,60,120,260,120,black"

How can I address the TFT from the same ESP rules to which the TFT display is connected via SPI?
Is that even planned?
Greetings Dondolo

Re: Display commands TFT on the ESP8266

Posted: 09 May 2021, 20:24
by Ath
Dondolo wrote: 09 May 2021, 20:12 I can control the TFT display via http with all commands from rules from another ESP.
e.g.

Code: Select all

SendToHTTP 192.168.178.38,80,"/control?cmd=tftcmd,clear"
SendToHTTP 192.168.178.38,80,"/control?cmd=tft,l,160,20,160,220,black"
SendToHTTP 192.168.178.38,80,"/control?cmd=tft,l,60,120,260,120,black"
How can I address the TFT from the same ESP rules to which the TFT display is connected via SPI?
By using exactly the same commands from rules, only thing is, you need an event to be generated/triggered to have that executed:

Code: Select all

on system#clock=All,**:** do
  tftcmd,clear
  tft,l,160,20,160,220,black
  tft,l,60,120,260,120,black
endon
This somewhat useless example repeats the same action every minute, but maybe it gets you in the desired direction?

Re: Display commands TFT on the ESP8266

Posted: 10 May 2021, 18:49
by Dondolo
Hi ATH,
thank you that was exactly what I was missing.
This somewhat useless example repeats the same action every minute, but maybe it gets you in the desired direction?

Clearly an event is needed was only to test the commands.

Thank you Dondolo