ArduinoTimerObject icon indicating copy to clipboard operation
ArduinoTimerObject copied to clipboard

in arduino 1.6.1 not run

Open domonetic opened this issue 10 years ago • 1 comments

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(); }

domonetic avatar Mar 12 '15 20:03 domonetic

Ok, I'll test it soon.

nrbrd avatar Mar 13 '15 13:03 nrbrd