File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed
Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 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 ();
You can’t perform that action at this time.
0 commit comments