(No reflection on Annex - I still think it's the best development environment for ESP32 by far :¬)
Just wondering Francesco, did you look at the bug I reported in Fernando's TTGO radio thread about TOUCH on the GPIO pins not working when the ESP32 was streaming?
From the thread :
I'm polling three pins with the pin.touch command every 200ms (I've tried less frequently too) and I'm reading values of around 90 when not touched and less than 20 when touched on each pin (actually connected to drawing pins as domed circular buttons) before the command to start the stream.
After the PLAY.STREAM command, it appears that one read is made of the pin and then will return that same value despite further touch / release.
I've proven this by (correctly) reading the pins several times on startup then including a pause before streaming during which I'll untouch the button. The read immediately after the stream command will return the untouched value.
After a PLAY.STOP the touch pins work correctly again.
This was the routine I was using to test :
Code: [Local Link Removed for Guests]
pause 500
nl$ = chr$(10) + chr$(13)
wlog nl$;nl$;nl$
PLAY.SETUP 1,50
play.stop
play.volume 10
for x = 1 to 50
wlog pin.touch(12),
wlog pin.touch(13),
wlog pin.touch(15)
pause 200
next x
pause 5000
wlog nl$;nl$
PLAY.STREAM"http://162.252.85.85:7858",50000,,1
for x = 1 to 50
wlog pin.touch(12),
wlog pin.touch(13),
wlog pin.touch(15)
pause 200
next x
pause 20000
wlog nl$;nl$
play.stop
for x = 1 to 50
wlog pin.touch(12),
wlog pin.touch(13),
wlog pin.touch(15)
pause 200
next x
pause 5000