Closed Runc2333 closed 2 years ago
Also, I mentioned that if I flash the rp2 a few times (maybe 5~6 times) without the power cut, the board will hang up until you reconnect it's power. Is this a bug or is it just designed this way?
@communix Can you comment on this?
@niklauslee I build a version of kaluma which changes targets/rp2/src/adc.c
from
if ((pin >= 26) && (pin <= 28)) {
return pin - 26; // GPIO 26 is channel 0
}
to
if ((pin >= 26) && (pin <= 29)) {
return pin - 26; // GPIO 26 is channel 0
}
and it just works.
board.adc(29).read() * 10 - 0.1
equals the voltage at VSYS.
I created a pull request for this, you can review it to check if it works.
According to Raspberry Pi Pico's official documentation...
But I can't use
analogRead(29)
orboard.adc(29).read()
to get the voltage at VSYS. This is important when a battery is connected at VSYS and estimate its charge by voltage. Could you help me with that?