Added type hints to microcontroller

This commit is contained in:
dherrada 2020-07-03 10:33:28 -04:00
parent 2e8b8c7b95
commit 0a8d9eed45
2 changed files with 6 additions and 6 deletions

View File

@ -67,7 +67,7 @@ const mp_obj_property_t mcu_processor_frequency_obj = {
},
};
//| temperature: Any = ...
//| temperature: Optional[float] = ...
//| """The on-chip temperature, in Celsius, as a float. (read-only)
//|
//| Is `None` if the temperature is not available."""
@ -87,7 +87,7 @@ const mp_obj_property_t mcu_processor_temperature_obj = {
},
};
//| uid: Any = ...
//| uid: bytearray = ...
//| """The unique id (aka serial number) of the chip as a `bytearray`. (read-only)"""
//|
STATIC mp_obj_t mcu_processor_get_uid(mp_obj_t self) {
@ -106,7 +106,7 @@ const mp_obj_property_t mcu_processor_uid_obj = {
},
};
//| voltage: Any = ...
//| voltage: Optional[float] = ...
//| """The input voltage to the microcontroller, as a float. (read-only)
//|
//| Is `None` if the voltage is not available."""

View File

@ -33,18 +33,18 @@
//| """Enum-like class to define the run mode of the microcontroller and
//| CircuitPython."""
//|
//| NORMAL: Any = ...
//| NORMAL: microcontroller.RunMode = ...
//| """Run CircuitPython as normal.
//|
//| :type microcontroller.RunMode:"""
//|
//| SAFE_MODE: Any = ...
//| SAFE_MODE: microcontroller.RunMode = ...
//| """Run CircuitPython in safe mode. User code will not be run and the
//| file system will be writeable over USB.
//|
//| :type microcontroller.RunMode:"""
//|
//| BOOTLOADER: Any = ...
//| BOOTLOADER: microcontroller.RunMode = ...
//| """Run the bootloader.
//|
//| :type microcontroller.RunMode:"""