summaryrefslogtreecommitdiff
path: root/shared-bindings/microcontroller
diff options
context:
space:
mode:
authorroot <siehputz@gmail.com>2021-01-26 09:47:21 -0600
committerroot <siehputz@gmail.com>2021-01-26 09:47:21 -0600
commitccdc97d23e93ed827a66491ea2908fcab889d3e4 (patch)
treeee69e3b629b26b0e4ae2b92153ed0115c101afb9 /shared-bindings/microcontroller
parent6043fdf94085bf2ec00e9f95149a74fb7eb0c7c4 (diff)
Update documentation for microprossors with multiple cpus
Diffstat (limited to 'shared-bindings/microcontroller')
-rw-r--r--shared-bindings/microcontroller/Processor.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/shared-bindings/microcontroller/Processor.c b/shared-bindings/microcontroller/Processor.c
index 90cc02fe3..573f53282 100644
--- a/shared-bindings/microcontroller/Processor.c
+++ b/shared-bindings/microcontroller/Processor.c
@@ -41,7 +41,14 @@
//|
//| 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)
+//| you will need to index the cpu to select which one to get the
+//| readings from. i.e.
+//|
+//| print(microcontroller.cpu[0].temperature)
+//| print(microcontroller.cpu[1].frequency)"""
//|
//| def __init__(self) -> None: