mirror of
https://github.com/supleed2/ELEC50003-P1-CW.git
synced 2024-11-14 19:55:49 +00:00
15 lines
260 B
C++
15 lines
260 B
C++
|
#include <Arduino.h>
|
||
|
#define LED_BUILTIN 2
|
||
|
|
||
|
void setup() {
|
||
|
Serial.begin(115200);
|
||
|
pinMode(LED_BUILTIN, OUTPUT);
|
||
|
digitalWrite(LED_BUILTIN, HIGH);
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
delay(2000);
|
||
|
digitalWrite(LED_BUILTIN, HIGH);
|
||
|
delay(2000);
|
||
|
digitalWrite(LED_BUILTIN, LOW);
|
||
|
}
|