Page 1 of 1
Konfig for AZ-Touch with ESP32?
Posted: 18 Oct 2021, 21:07
by gudi
Hi there,
I have an AZ-Touch MOD display with ESP32 from AZ-Delivery. I flashed this with the current ESP Easy. Unfortunately I cannot find the correct port assignment for the display.
Does anyone have the configuration for the display and maybe a few examples for the control.
kindly regards
Gudi
Re: Konfig for AZ-Touch with ESP32?
Posted: 18 Oct 2021, 21:36
by TD-er
I assume it is this display:
https://www.hwhardsoft.de/english/proje ... touch-esp/
On that page you have the schematics: Schematic AZ-Touch V01-03
Looks like the backlight is a bit different between ESP8266 and ESP32.
So for ESP32 you need to look for "LED32" and for ESP8266 the "LED" pin.
T_IRQ = GPIO-2
T_CS = GPIO-14
MISO = GPIO-19
SCK = GPIO-18
MOSI = GPIO-23
DC = GPIO-4
RESET = GPIO-22
CS = GPIO-5
LED32 = GPIO-15
Beeper = GPIO-21
Re: Konfig for AZ-Touch with ESP32?
Posted: 19 Oct 2021, 03:26
by ThomasB
and maybe a few examples for the control.
Some basic examples are found in the _P095_ILI9341.ino source code file (available on GitHub).
- Thomas
Re: Konfig for AZ-Touch with ESP32?
Posted: 19 Oct 2021, 11:53
by Ath
A more readable version of commands supported is in the RTD documentation:
https://espeasy.readthedocs.io/en/lates ... #p095-page
Re: Konfig for AZ-Touch with ESP32?
Posted: 19 Oct 2021, 21:30
by gudi
Thank you for your tips. I had already found the pages and implemented the port configuration as follows. Unfortunately the commands don't work. The display remains dark.
I was hoping that someone would already use the display. I would like to use it to build a level measurement for my cistern. With a ToF sensor VL53L0X.
Can you recognize my mistake?
Re: Konfig for AZ-Touch with ESP32?
Posted: 19 Oct 2021, 22:19
by Ath
Does it light up if you submit this command from the tools page?
That should turn on the backlight for the display, as without it it can be
very dark.
Re: Konfig for AZ-Touch with ESP32?
Posted: 19 Oct 2021, 23:13
by gudi
Thank you, that was the right hint. The display starts with gpio,15,0
Then I can write the first "Hello World".
I think I can continue to work with that. I think that should work with tftcmd,on
Thanks!
Re: Konfig for AZ-Touch with ESP32?
Posted: 19 Oct 2021, 23:37
by Ath
You can also use the pwm command to put a pulse signal on that gpio to get less backlight than 100%
Code: Select all
pwm,15,<duty> // <duty> is a numeric value from 0..1023, giving a range from 0 to 100%