File tree Expand file tree Collapse file tree
shared-bindings/microcontroller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const mp_obj_property_t mcu_processor_frequency_obj = {
6767 },
6868};
6969
70- //| temperature: Any = ...
70+ //| temperature: Optional[float] = ...
7171//| """The on-chip temperature, in Celsius, as a float. (read-only)
7272//|
7373//| Is `None` if the temperature is not available."""
@@ -87,7 +87,7 @@ const mp_obj_property_t mcu_processor_temperature_obj = {
8787 },
8888};
8989
90- //| uid: Any = ...
90+ //| uid: bytearray = ...
9191//| """The unique id (aka serial number) of the chip as a `bytearray`. (read-only)"""
9292//|
9393STATIC mp_obj_t mcu_processor_get_uid (mp_obj_t self ) {
@@ -106,7 +106,7 @@ const mp_obj_property_t mcu_processor_uid_obj = {
106106 },
107107};
108108
109- //| voltage: Any = ...
109+ //| voltage: Optional[float] = ...
110110//| """The input voltage to the microcontroller, as a float. (read-only)
111111//|
112112//| Is `None` if the voltage is not available."""
Original file line number Diff line number Diff line change 3333//| """Enum-like class to define the run mode of the microcontroller and
3434//| CircuitPython."""
3535//|
36- //| NORMAL: Any = ...
36+ //| NORMAL: microcontroller.RunMode = ...
3737//| """Run CircuitPython as normal.
3838//|
3939//| :type microcontroller.RunMode:"""
4040//|
41- //| SAFE_MODE: Any = ...
41+ //| SAFE_MODE: microcontroller.RunMode = ...
4242//| """Run CircuitPython in safe mode. User code will not be run and the
4343//| file system will be writeable over USB.
4444//|
4545//| :type microcontroller.RunMode:"""
4646//|
47- //| BOOTLOADER: Any = ...
47+ //| BOOTLOADER: microcontroller.RunMode = ...
4848//| """Run the bootloader.
4949//|
5050//| :type microcontroller.RunMode:"""
You can’t perform that action at this time.
0 commit comments