mirror of
https://github.com/Lomanic/presence-button
synced 2025-12-14 14:56:29 +00:00
Make the LED blink as a hello world
This commit is contained in:
commit
f3bd3c0c90
1 changed files with 25 additions and 0 deletions
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…
Add table
Reference in a new issue