circuitpython/ports/raspberrypi/common-hal/analogio
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
..
AnalogIn.c Add ability to read VOLTAGE_MONITOR on Pico W 2022-11-08 09:37:15 -06:00
AnalogIn.h run code formatting script 2021-03-15 19:27:36 +05:30
AnalogOut.c Conditionalize LTO 2022-05-27 12:59:54 -07:00
AnalogOut.h Add initial RP2040 support 2021-01-20 19:16:56 -08:00
__init__.c Add initial RP2040 support 2021-01-20 19:16:56 -08:00