Merge pull request #4402 from jposada202020/analogio_doc_corrections

Change in documentation in Analogio
This commit is contained in:
Jeff Epler 2021-03-14 15:00:48 -05:00 committed by GitHub
commit da030ce7d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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."""
//|

View File

@ -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.