|
1 | 1 | /*
|
2 | 2 | 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. |
6 | 6 |
|
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]) |
18 | 21 | */
|
19 | 22 |
|
20 | 23 | #include "Arduino_PowerManagement.h"
|
@@ -52,7 +55,7 @@ void setup() {
|
52 | 55 | }
|
53 | 56 | }
|
54 | 57 |
|
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 |
56 | 59 | board.shutDownFuelGauge();
|
57 | 60 |
|
58 | 61 | // The LED should go off when the board goes to sleep
|
|
0 commit comments