Skip to content

Commit 784129a

Browse files
authored
upload an example code
1 parent 49badef commit 784129a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

main.cpp

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#include <Arduino.h>
2+
3+
void serialEvent() {
4+
}
5+
6+
void serialEvent1() {
7+
serialEvent();
8+
}
9+
void serialEvent2() {
10+
serialEvent();
11+
}
12+
void serialEvent3() {
13+
serialEvent();
14+
}
15+
16+
17+
void setup() {
18+
Serial.begin(9600);
19+
Serial.print("started\n");
20+
pinMode(LED_BUILTIN, OUTPUT);
21+
}
22+
23+
void loop() {
24+
Serial.print("loop iter\n");
25+
digitalWrite(LED_BUILTIN, HIGH);// turn the LED on (HIGH is the voltage level)
26+
Serial.print("1\n");
27+
delay(500);
28+
digitalWrite(LED_BUILTIN, LOW);
29+
Serial.print("0\n");
30+
delay(500);
31+
}

0 commit comments

Comments
 (0)