Make the LED blink as a hello world

This commit is contained in:
Lomanic 2019-09-21 18:23:39 +00:00
commit f3bd3c0c90
1 changed files with 25 additions and 0 deletions

25
main.ino Normal file
View File

@ -0,0 +1,25 @@
#define RELAY_PIN 12
#define LED_PIN 13
void setup() {
Serial.begin(115200);
Serial.println("START");
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH);
delay(1000);
digitalWrite(LED_PIN, LOW);
delay(1000);
Serial.println("LED");
}