Closed bablokb closed 2 weeks ago
* RP2040, RP2350 QFN-60: User ADC inputs are on 0-3 (GPIO 26-29), the temperature sensor is on input 4.
* RP2350 QFN-80 : User ADC inputs are on 0-7 (GPIO 40-47), the temperature sensor is on input 8.
/**
* The ADC channel number of the on-board temperature sensor
*/
#ifndef ADC_TEMPERATURE_CHANNEL_NUM
#define ADC_TEMPERATURE_CHANNEL_NUM (NUM_ADC_CHANNELS - 1)
#endif
Looks like the hard-coded channel value in common_hal_mcu_processor_get_temperature should be changed to use this define instead.
Feel like you could pick this up and PR it? I don't have a 2350B handy to check if it works.
Yes, I will do that. Won't be before Tuesday though.
CircuitPython version
Code/REPL
Behavior
see above
Description
This works fine on a Pico2 with a RP2350A. I don't have any other RP2350B board so I can't verify if it is board specific or due to the B-version of the chip.
Additional information
No response