File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,14 @@ MP_WEAK const mcu_pin_obj_t *common_hal_analogio_analogin_validate_pin(mp_obj_t
56
56
//| """Use the AnalogIn on the given pin. The reference voltage varies by
57
57
//| platform so use ``reference_voltage`` to read the configured setting.
58
58
//|
59
- //| :param ~microcontroller.Pin pin: the pin to read from"""
59
+ //| :param ~microcontroller.Pin pin: the pin to read from
60
+ //|
61
+ //| **Limitations:** On Espressif ESP32, `AnalogIn` is not available when WiFi is in use:
62
+ //| the hardware makes use of the ADC. Attempts to use `AnalogIn` will raise `espidf.IDFError`.
63
+ //| On other Espressif chips, the ADC is available, but is shared with WiFi.
64
+ //| WiFi use takes precedence and may temporarily cause `espidf.IDFError` to be raise.
65
+ //| when you read a value. You can retry the read.
66
+ //| """
60
67
//| ...
61
68
STATIC mp_obj_t analogio_analogin_make_new (const mp_obj_type_t * type ,
62
69
mp_uint_t n_args , size_t n_kw , const mp_obj_t * args ) {
You can’t perform that action at this time.
0 commit comments