summaryrefslogtreecommitdiff
path: root/shared-bindings/microcontroller/Processor.c
diff options
context:
space:
mode:
authorHosted Weblate <hosted@weblate.org>2021-02-01 18:50:47 +0100
committerHosted Weblate <hosted@weblate.org>2021-02-01 18:50:47 +0100
commit4db7772d4e211e0210c15ee276e8af63af37a72b (patch)
treec82dfab54fc8ba75fa6bf7a1f527d4f4e81fc919 /shared-bindings/microcontroller/Processor.c
parentc3aa1ec10edff00513ecb1deac8d563e4617a2d5 (diff)
parent459f3232477877b6dbc011f93ebc9d3544d918c3 (diff)
Merge remote-tracking branch 'origin/main' into main
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: