Files
platformio-core/examples/ide/sublimetext/src/blink.cpp
T

16 lines
417 B
C++
Raw Normal View History

#include "Arduino.h"
2015-09-04 23:48:57 +03:00
// Most Arduino boards already have a LED attached to pin 13 on the board itself
#define LED_PIN 13
2015-09-04 23:48:57 +03:00
void setup() {
pinMode(LED_PIN, OUTPUT); // set pin as output
}
void loop() {
2015-09-04 23:48:57 +03:00
digitalWrite(LED_PIN, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(LED_PIN, LOW); // set the LED off
delay(1000); // wait for a second
}