Use LED_BUILTIN
This commit is contained in:
parent
fcfe6b537a
commit
9c128d6e15
1 changed files with 4 additions and 5 deletions
|
@ -1,19 +1,18 @@
|
|||
#include <Arduino.h>
|
||||
|
||||
#define RELAY 2 // GPIO4
|
||||
#define LED 5 // GPIO5
|
||||
#define RELAY 4 // GPIO4
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
pinMode(LED, OUTPUT);
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
pinMode(RELAY, OUTPUT);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
digitalWrite(LED, HIGH);
|
||||
digitalWrite(LED_BUILTIN, HIGH);
|
||||
digitalWrite(RELAY, HIGH);
|
||||
delay(1000);
|
||||
digitalWrite(LED, LOW);
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
digitalWrite(RELAY, LOW);
|
||||
delay(1000);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue