diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2021-02-11 16:19:12 -0500 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2021-02-11 16:19:12 -0500 |
| commit | a061768ceb784f475b6a776df64432ed705c8d20 (patch) | |
| tree | b73ae66f9ff6488ae7d857793198c17104fdcfce /shared-bindings/microcontroller/Processor.c | |
| parent | d00bee2149825ee1e187a8a5bfc8c6e75874cc0b (diff) | |
| parent | aae10fb37fa402f9bc51f3edec0d2f7772036a25 (diff) | |
Merge remote-tracking branch 'upstream/main' into stm32-i2cstart
Diffstat (limited to 'shared-bindings/microcontroller/Processor.c')
| -rw-r--r-- | shared-bindings/microcontroller/Processor.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/shared-bindings/microcontroller/Processor.c b/shared-bindings/microcontroller/Processor.c index 90cc02fe3..67001c831 100644 --- a/shared-bindings/microcontroller/Processor.c +++ b/shared-bindings/microcontroller/Processor.c @@ -41,7 +41,15 @@ //| //| import microcontroller //| print(microcontroller.cpu.frequency) -//| print(microcontroller.cpu.temperature)""" +//| print(microcontroller.cpu.temperature) +//| +//| Note that on chips with more than one cpu (such as the RP2040) +//| microcontroller.cpu will return the value for CPU 0. +//| To get values from other CPUs use microcontroller.cpus indexed by +//| the number of the desired cpu. i.e. +//| +//| print(microcontroller.cpus[0].temperature) +//| print(microcontroller.cpus[1].frequency)""" //| //| def __init__(self) -> None: |
