-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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();
}
Metadata
Metadata
Assignees
Labels
No labels