We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d1ab0 commit ea28f54Copy full SHA for ea28f54
libraries/ESP32/examples/ArduinoWaitTimeBeforeStartingSketch/ArduinoWaitTimeBeforeStartingSketch.ino
@@ -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