ArduinoTimerObject
ArduinoTimerObject copied to clipboard
in arduino 1.6.1 not run
im testing this and dont run
include <TimerObject.h>
TimerObject *TimerLed = new TimerObject(50,&ParpadeaLed); int ledState =LOW;
void setup() { // put your setup code here, to run once: //TimerLed.setOnTimer(ParpadeaLed); ParpadeaLed(); }
void ParpadeaLed() { if (ledState == LOW) ledState = HIGH; else ledState = LOW;
// set the LED with the ledState of the variable:
digitalWrite(13, ledState);
}
void loop() { // put your main code here, to run repeatedly: TimerLed->Update(); }
Ok, I'll test it soon.