Skip to content

A display based on ESP32-2432S024x boards using mqtt (Older/slower version)

Notifications You must be signed in to change notification settings

MikeEitel/ESP-32_DIS_MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ESP-32_DIS_MQTT

A display based on ESP32-2432S024x boards controlled by MQTT and is single core using. OLDER and SLOWER version as SW spi based.

You can choose between all three types of screens none, capacitive or resistive. -> x= N / C or R This variant is only using single core.

The type of board ( defined in the plattform.ini ) defines autoaticaly if the touch part of the program get compiled or not. You can compile N type also if do not want that feature.

What is displayed gets defined from line 224 on: // AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA APPLICATION SPECIFIC start AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA #define touch_3_2_0 with this #define you choose the layout and what is possible to show via simple mqtt messages. ALL addressing is done via predefinded numbering.

The hole seems to be overcomplicated on first glance but follows the concept that you use predefined tiles in with you show a) a static TITLE and b) one or more variables. As these devices are used via node-red the layout stays fix and messaging of payloads stays flexible but basic. When used as touch, the device only sends back the touched field.

An "area" divides the screen into rectangle tiles. This first struct defines the size of each tile and the position of the (lateron defined) static text. The second struct defines static texts. The positioning is done via offsets! An area can have more than only one static text. The third struct defines "displayed variables" on predifined positions in an area. Wicth can be more than on per area

The possible mqtt commands are found in the "callback" function from line 755 to 890.

In the credentials.h you define the address and network / mqtt parameters. As this kind of display is used in different networks, in the .ino you define whitch credential file = network to use. I dislike DHCP in static IOT networks and the last IP digit is also used to define the mqtt name. So in a correct credential file only the one number in #define myIP "100" is enough to compile another device.

About

A display based on ESP32-2432S024x boards using mqtt (Older/slower version)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published