SignalK / SensESP

Universal Signal K sensor framework for the ESP32 platform
https://signalk.org/SensESP/
Apache License 2.0
146 stars 80 forks source link

Make ESP32AnalogReader work for some ADC2 pins #642

Open ba58smith opened 1 year ago

ba58smith commented 1 year ago

The pins on ADC2 are configured and read differently from the pins on ADC1, so everything has to be done differently.

The code in this commit works perfectly for reading pins on both ADC1 and ADC2 in a non-SensESP project that I've been working on, but I currently have no Signal K / SensESP project going, so I can't really test this properly.

mairas commented 1 year ago

(Sorry, missed the notification email.) Thanks! Looks good to me, but I'll keep it open until I can test it (or someone else verifies it works as intended).