circuitpython/ports/raspberrypi/bindings
Jeff Epler 09f6919c93
Add ability to read VOLTAGE_MONITOR on Pico W
Because this must be treated like an in-use pin for all other purposes,
unfortunately a special case must be added in shared-bindings.

Multiple AnalogIn objects for VOLTAGE_MONITOR can be created (because
in use tracking isn't working) but this causes no harm.

Testing performed: Read the monitor, then imported wifi. When the
pin state was insufficiently restored, the second step would fail
with debug messages about do_ioctl timeout.

```
import analogio, board
a = analogio.AnalogIn(board.VOLTAGE_MONITOR)
print(a.value)
import wifi
```

Closes: #7020
2022-11-08 09:37:15 -06:00
..
cyw43 Add ability to read VOLTAGE_MONITOR on Pico W 2022-11-08 09:37:15 -06:00
rp2pio Merge pull request #6973 from jepler/rp2040-fix-warnings 2022-09-30 16:21:31 -04:00