summaryrefslogtreecommitdiff
path: root/shared-bindings/microcontroller/Processor.c
diff options
context:
space:
mode:
authorLucian Copeland <hierophect@gmail.com>2021-02-11 16:19:12 -0500
committerLucian Copeland <hierophect@gmail.com>2021-02-11 16:19:12 -0500
commita061768ceb784f475b6a776df64432ed705c8d20 (patch)
treeb73ae66f9ff6488ae7d857793198c17104fdcfce /shared-bindings/microcontroller/Processor.c
parentd00bee2149825ee1e187a8a5bfc8c6e75874cc0b (diff)
parentaae10fb37fa402f9bc51f3edec0d2f7772036a25 (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.c10
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: