Skip to content

Commit de214ee

Browse files
committed
MCU8MASS-959 Update low power example's text to refer to the library manager instead of Github for sensor drivers
1 parent 38485ef commit de214ee

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

examples/power_down/power_down.ino

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
/**
22
* Note that this example requires the Mcp9808 and Veml3328 driver, they can be
3-
* found here:
4-
*
5-
* Mcp9808:
6-
* https://github.com/microchip-pic-avr-solutions/mcp9808_arduino_driver
7-
* Veml3328:
8-
* https://github.com/microchip-pic-avr-solutions/veml3328_arduino_driver
3+
* found in the Arduino IDE's library manager.
94
*/
105

116
#include <avr/io.h>

examples/power_save/power_save.ino

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
/**
22
* Note that this example requires the Mcp9808 and Veml3328 driver, they can be
3-
* found here:
4-
*
5-
* Mcp9808:
6-
* https://github.com/microchip-pic-avr-solutions/mcp9808_arduino_driver
7-
* Veml3328:
8-
* https://github.com/microchip-pic-avr-solutions/veml3328_arduino_driver
3+
* found here in the Arduino IDE's library manager.
94
*/
105

116
#include <avr/io.h>
@@ -52,8 +47,8 @@ void setup() {
5247
// that the cellular modem will not be sleeping for the whole time period,
5348
// but most of it. This repeats as long as we want.
5449
//
55-
// Here we say that we want to have a power save period of 30 seconds * 2 =
56-
// 60 seconds.
50+
// Here we say that we want to have a power save period of 1 minute * 3 =
51+
// 180 seconds.
5752
//
5853
// 2. This happens periodically as long as we tell it that it's okay for it
5954
// to go into power save, which we do with Power.powerSave(). Note that
@@ -68,8 +63,8 @@ void setup() {
6863
// time as the cellular modem is woken up.
6964

7065
LowPower.configurePeriodicPowerSave(
71-
PowerSaveModePeriodMultiplier::THIRTY_SECONDS,
72-
2);
66+
PowerSaveModePeriodMultiplier::ONE_MINUTE,
67+
3);
7368

7469
// Make sure sensors are turned off
7570
Veml3328.begin();

0 commit comments

Comments
 (0)