File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ const mp_obj_property_t analogio_analogin_value_obj = {
124
124
(mp_obj_t )& mp_const_none_obj },
125
125
};
126
126
127
- //| reference_voltage: Optional[ float]
127
+ //| reference_voltage: float
128
128
//| """The maximum voltage measurable (also known as the reference voltage) as a
129
129
//| `float` in Volts."""
130
130
//|
Original file line number Diff line number Diff line change 42
42
//| Example usage::
43
43
//|
44
44
//| import analogio
45
- //| from microcontroller import pin
45
+ //| from board import *
46
46
//|
47
- //| dac = analogio.AnalogOut(pin.PA02 ) # output on pin PA02
48
- //| dac.value = 32768 # makes PA02 1.65V"""
47
+ //| dac = analogio.AnalogOut(A2 ) # output on pin A2
48
+ //| dac.value = 32768 # makes A2 1.65V"""
49
49
//|
50
50
//| def __init__(self, pin: microcontroller.Pin) -> None:
51
51
//| """Use the AnalogOut on the given pin.
You can’t perform that action at this time.
0 commit comments