diff options
| author | root <siehputz@gmail.com> | 2020-07-24 23:28:41 -0500 |
|---|---|---|
| committer | root <siehputz@gmail.com> | 2020-07-24 23:28:41 -0500 |
| commit | c4817968eee29257cbeaabace0a29fcbed1c3b47 (patch) | |
| tree | 25108d321af3697e608270872e59b5aec2043cc5 /shared-bindings/microcontroller/Processor.c | |
| parent | d9503e579b72d8bad6f556589da50ba9833b4574 (diff) | |
| parent | 3dfed3c4aa52d06bd2eb1c28d0a1916821cc3f80 (diff) | |
Merge branch 'opt-test' of https://github.com/DavePutz/circuitpython into opt-test
Diffstat (limited to 'shared-bindings/microcontroller/Processor.c')
| -rw-r--r-- | shared-bindings/microcontroller/Processor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared-bindings/microcontroller/Processor.c b/shared-bindings/microcontroller/Processor.c index c4b249124..d9f780f84 100644 --- a/shared-bindings/microcontroller/Processor.c +++ b/shared-bindings/microcontroller/Processor.c @@ -44,7 +44,7 @@ //| print(microcontroller.cpu.temperature)""" //| -//| def __init__(self, ): +//| def __init__(self) -> None: //| """You cannot create an instance of `microcontroller.Processor`. //| Use `microcontroller.cpu` to access the sole instance available.""" //| ... @@ -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.""" |
