srwi / FastLEDHub

Control multiple FastLED lightstrip animations on the ESP8266 and ESP32 without reuploading.
GNU Lesser General Public License v2.1
53 stars 2 forks source link

analogRead A0 pin assignment #13

Closed gootzte closed 1 year ago

gootzte commented 1 year ago

After working with different ESP32 boards, the A0 in the analogRead(A0) function needs to be replaced with m_potentiometerPin member. Most ESP32 boards has 4 or more GPIO pins that can be assigned for analog input. The default A0 may not always be the assigned correctly and will cause issues. On the board I am using A0 is defaulted to pin 36 but according to espressif pins 36 & 39 are used for the internal hall sensor.

srwi commented 1 year ago

Thanks again for your bug reports and the detailed explanation. As you can probably tell, I didn't spend enough time testing the hardware inputs. I will take care of the issue.