10000 Add a way to read the "voltage monitor" on Pico W · Issue #7020 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
Add a way to read the "voltage monitor" on Pico W #7020
Closed
@jepler

Description

@jepler

Right now this is not possible, because the pin is marked "never reset". This means it can't be used anywhere like in the constructor of AnalogIn.

Furthermore, actually reading the value requires cooperation with the wifi/cyw43 driver, because the GPIO (GPIO29) is also the SPI clock during communication with the cyw43 chip and GPIO25 (also special to the cyw43) must also be HIGH to perform the read.

I looked around micropython but didn't find the "trick" to doing this right codified there.

Due to the difficulties of fitting this peg into the AnalogIn hole, I think doing it as a function in board that returns float would potentially be acceptable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0