Added type hints to microcontroller
This commit is contained in:
parent
2e8b8c7b95
commit
0a8d9eed45
@ -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."""
|
||||
|
@ -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:"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user