Merge pull request #4402 from jposada202020/analogio_doc_corrections
Change in documentation in Analogio
This commit is contained in:
commit
da030ce7d8
@ -124,7 +124,7 @@ const mp_obj_property_t analogio_analogin_value_obj = {
|
||||
(mp_obj_t)&mp_const_none_obj},
|
||||
};
|
||||
|
||||
//| reference_voltage: Optional[float]
|
||||
//| reference_voltage: float
|
||||
//| """The maximum voltage measurable (also known as the reference voltage) as a
|
||||
//| `float` in Volts."""
|
||||
//|
|
||||
|
@ -42,10 +42,10 @@
|
||||
//| Example usage::
|
||||
//|
|
||||
//| import analogio
|
||||
//| from microcontroller import pin
|
||||
//| from board import *
|
||||
//|
|
||||
//| dac = analogio.AnalogOut(pin.PA02) # output on pin PA02
|
||||
//| dac.value = 32768 # makes PA02 1.65V"""
|
||||
//| dac = analogio.AnalogOut(A2) # output on pin A2
|
||||
//| dac.value = 32768 # makes A2 1.65V"""
|
||||
//|
|
||||
//| def __init__(self, pin: microcontroller.Pin) -> None:
|
||||
//| """Use the AnalogOut on the given pin.
|
||||
|
Loading…
Reference in New Issue
Block a user