Skip to content

Update information in example sketch documentation #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Standby_WakeFromPin/Standby_WakeFromPin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This sketch is universal and worksn on both Portenta C33 and H7.

On the the Portenta C33 you can select any of the supported pins (A0, A1, A2, A3, A4, A5, D4, D7) to wake up the board from standby mode,
but on the Portenta H7 only GPIO0 can be used to wake up the board from standby mode. GPIO0 is available trough the High Density Connectors and you need a breakout board to access it.
but on the Portenta H7 only GPIO0 can be used to wake up the board from standby mode. GPIO0 is available through the High Density Connectors and you need a breakout board to access it.

Requirements:
- Arduino Portenta C33, Arduino Portenta H7
Expand Down
4 changes: 2 additions & 2 deletions examples/Standby_WakeFromRTC_C33/Standby_WakeFromRTC_C33.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This example demonstrates how to wake up the Portenta C33 from standby mode using the included RTC (Real Time Clock).
The device will go to sleep for 1 second and then wake up. When the device is awake you will see the board's blue LED turned on.
Effectivelly, you will get the same effect as with blink.
Effectively, you will get the same effect as with blink.

On the Portenta C33 with the peripherals turned off you can expect around 60uA of current consumption in standby mode.
The example also turns off the peripherals before going to sleep and turns them back on after waking up.
Expand Down Expand Up @@ -62,7 +62,7 @@ void setup() {

board.enableWakeupFromRTC(0, 0, 10); // Sleep for 10 seconds

delay(10000); // Keep the board awake for 1 second, so we can se it working
delay(10000); // Keep the board awake for 10 seconds, so we can se it working

board.shutDownFuelGauge();
board.setAllPeripheralsPower(false);
Expand Down
3 changes: 2 additions & 1 deletion examples/Standby_WakeFromRTC_H7/Standby_WakeFromRTC_H7.ino
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ void setup() {
}
}

delay(10000); // keep the board awake for 5 seconds, so we can se it working
delay(10000); // keep the board awake for 10 seconds, so we can se it working
board.shutDownFuelGauge();



// The LED should go off when the board goes to sleep
board.setAllPeripheralsPower(false);

Expand Down
Loading