Skip to content

Commit 16834cc

Browse files
committed
Adjust delay in example sketch
1 parent 696fece commit 16834cc

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

examples/Standby_WakeFromRTC_H7/Standby_WakeFromRTC_H7.ino

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
/*
22
Standby Wake from RTC Demo for Portenta H7
3-
This example demonstrates how to wake up the Portenta H7 from standby mode using the included RTC (Real Time Clock).
4-
The device will go to sleep for 10 second and then stay awake for another 10. When the device is awake you will see the board's blue LED turned on.
5-
Effectively, you will get the same effect as with blink.
3+
This example demonstrates how to wake up the Portenta H7 from standby mode using the included RTC (Real Time Clock).
4+
The device will stay awake for ~5 seconds, then go to sleep for 10 second. When the device is awake you will see the board's blue LED turned on.
5+
Effectively, you will get the same effect as with blink.
66
7-
On the Portenta H7 with the peripherals turned off you can expect around 300uA of current consumption in standby mode.
8-
The example also turns off the peripherals before going to sleep and turns them back on after waking up.
9-
Usage:
10-
- Make sure you are running the latest version of the Renesas Core
11-
- Select the Portenta H7 board from the Tools men
12-
- Select the Portenta H7 USB port from the Tools menu
13-
- Upload the code to your Portenta H7
14-
15-
Initial authors:
16-
Cristian Dragomir ([email protected])
17-
Sebastian Romero ([email protected])
7+
On the Portenta H7 with the peripherals turned off you can expect around 300uA of current consumption in standby mode.
8+
The example also turns off the peripherals before going to sleep and turns them back on after waking up.
9+
Usage:
10+
- Make sure you are running the latest version of the Portenta H7 core.
11+
- Select the Portenta H7 board from the Tools menu
12+
- Select the Portenta H7 USB port from the Tools menu
13+
- Upload the code to your Portenta H7
14+
15+
Note: You need to upload this sketch to both cores, the M7 and the M4 for it to work.
16+
You can do so by selecting the M7 core and then the M4 core from the Tools menu in the "Target core" section.
17+
18+
Initial authors:
19+
Cristian Dragomir ([email protected])
20+
Sebastian Romero ([email protected])
1821
*/
1922

2023
#include "Arduino_PowerManagement.h"
@@ -52,7 +55,7 @@ void setup() {
5255
}
5356
}
5457

55-
delay(10000); // keep the board awake for 10 seconds, so we can se it working
58+
delay(5000); // keep the board awake for 5 seconds, so we can se it working
5659
board.shutDownFuelGauge();
5760

5861
// The LED should go off when the board goes to sleep

0 commit comments

Comments
 (0)