mirror of
https://github.com/Lomanic/presence-button
synced 2024-12-22 19:26:58 +00:00
Make the LED blink as a hello world
This commit is contained in:
commit
f3bd3c0c90
25
main.ino
Normal file
25
main.ino
Normal 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");
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user