Created
December 29, 2023 18:49
-
-
Save daniel-dona/d2cc7f046571245d7b6cbabeb5b451e9 to your computer and use it in GitHub Desktop.
DS test project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#define LT_UART_DEFAULT_PORT 1 | |
void setup() { | |
Serial.println("Boot"); | |
for(int i = 5; i > 0; i--){ | |
Serial.print("Deep sleep in "); | |
Serial.println(i); | |
delay(1000); | |
} | |
int seconds = 60 * 2; | |
//int seconds = 60 * 4; | |
Serial.print("Deep sleep for: "); | |
Serial.print(seconds); | |
Serial.println(" seconds"); | |
delay(100); | |
lt_deep_sleep_config_timer(seconds * 1000); | |
lt_deep_sleep_enter(); | |
} | |
void loop() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment