Skip to content

Commit 0a8d9ee

Browse files
committed
Added type hints to microcontroller
1 parent 2e8b8c7 commit 0a8d9ee

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

shared-bindings/microcontroller/Processor.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
//|
9393
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 = {
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."""

shared-bindings/microcontroller/RunMode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@
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:"""

0 commit comments

Comments
 (0)