Skip to content

Commit ea28f54

Browse files
authored
feat(arduino): example for SET_TIME_BEFORE_STARTING_SEKETCH_MS
1 parent c3d1ab0 commit ea28f54

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// macro SET_TIME_BEFORE_STARTING_SKETCH_MS(time_ms) can set a time in milliseconds
2+
// before the sketch would start its execution. It gives the user time to open the Serial Monitor
3+
4+
// This will force the Sketch execution to wait for 5 seconds before starting it execution
5+
// setup() will be execute only after this time
6+
SET_TIME_BEFORE_STARTING_SKETCH_MS(5000);
7+
8+
9+
void setup() {
10+
Serial.begin(115200);
11+
Serial.println("After 5 seconds... this message will be seen in the Serial Monitor.");
12+
}
13+
14+
void loop() {
15+
}

0 commit comments

Comments
 (0)