A very simple LED library to use in Arduino sketches.
#include <Led.h>
#define LED_PIN 2;
Led myLed(LED_PIN);
void loop() {
myLed.on();
delay(300);
myLed.off();
delay(300);
}
Check the examples folder to more use cases.
This code is released under the MIT License.