9
0
mirror of https://github.com/Lomanic/presence-button synced 2024-11-24 22:37:29 +00:00

Make the LED blink as a hello world

This commit is contained in:
Lomanic 2019-09-21 18:23:39 +00:00
commit f3bd3c0c90

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");
}