Display commands TFT on the ESP8266

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Dondolo
Normal user
Posts: 77
Joined: 03 Jul 2019, 06:56
Location: Germany

Display commands TFT on the ESP8266

#1 Post by Dondolo » 09 May 2021, 20:12

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

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

Re: Display commands TFT on the ESP8266

#2 Post by Ath » 09 May 2021, 20:24

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?
/Ton (PayPal.me)

Dondolo
Normal user
Posts: 77
Joined: 03 Jul 2019, 06:56
Location: Germany

Re: Display commands TFT on the ESP8266

#3 Post by Dondolo » 10 May 2021, 18:49

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

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests