RemoteXY / RemoteXY-Arduino-library

RemoteXY library for Arduino IDE
http://remotexy.com
GNU Lesser General Public License v2.1
47 stars 18 forks source link

Using multiple connexions (CLOUD and BT) : loss analogRead on ESP32 #15

Closed sbarabe closed 9 months ago

sbarabe commented 9 months ago

I don't know why and I can't put a finger on the problem. I've a sketch working perfectly with cloud connection or BT connection. But if a try a multiple connection version of this sketch (CLOUD and BT at the same time), I lost the ESP32 capability to analogRead a pin (GPIO27 in this case). I did not test all the possibility because I was in a remote location with limited time available... In the sketch, this pin (GPIO27) is not related in anyway to RemoteXY GUI.

I've you ever encountered similar behaviour and how should I prevent this ???

Any information are welcome.

Thank you !

sbarabe commented 9 months ago

Found the issue, not RemoteXY related : ESP32 ADC2 pins cannot be used for analog when WIFI is used ! So I've switch to ADC1 pins my analog input.