2015-02-25 00:22:24 +02:00
|
|
|
#ifdef ENERGIA
|
|
|
|
|
#include "Energia.h"
|
|
|
|
|
#else
|
|
|
|
|
#include "Arduino.h"
|
2014-05-18 23:41:07 +03:00
|
|
|
#endif
|
|
|
|
|
|
2015-02-25 00:22:24 +02:00
|
|
|
#ifndef LED_PIN
|
|
|
|
|
// Most Arduino boards already have a LED attached to pin 13 on the board itself
|
|
|
|
|
#define LED_PIN 13
|
|
|
|
|
#endif
|
2014-06-21 22:27:58 +03:00
|
|
|
|
2015-02-25 00:22:24 +02:00
|
|
|
void setup() {
|
2014-06-21 22:27:58 +03:00
|
|
|
pinMode(LED_PIN, OUTPUT); // set pin as output
|
2014-05-18 23:41:07 +03:00
|
|
|
}
|
|
|
|
|
|
2015-02-25 00:22:24 +02:00
|
|
|
void loop() {
|
2014-06-21 22:27:58 +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
|
2014-06-02 20:55:20 +03:00
|
|
|
}
|