You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
364 B
C++
20 lines
364 B
C++
2 weeks ago
|
#include <Arduino.h>
|
||
|
|
||
|
#define LED 2
|
||
|
|
||
|
void setup() {
|
||
|
// put your setup code here, to run once:
|
||
|
//Serial.begin(115200);
|
||
|
pinMode(LED, OUTPUT);
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
// put your main code here, to run repeatedly:
|
||
|
digitalWrite(LED, HIGH);
|
||
|
//Serial.println("LED is on");
|
||
|
delay(1000);
|
||
|
digitalWrite(LED, LOW);
|
||
|
//Serial.println("LED is off");
|
||
|
delay(1000);
|
||
|
}
|