Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihaslamaci committed Jan 28, 2017
1 parent d262f6b commit 569a448
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/TwoBlink/TwoBlink.pde
@@ -0,0 +1,23 @@
#include <TimerFa.h>

TimerFa TimerLed1;
TimerFa TimerLed2;

int Led1=13;
int Led2=9;

void setup(void)
{
pinMode(Led1, OUTPUT);
pinMode(Led2, OUTPUT);
}

void loop(void)
{
if (TimerLed1.MicrosaniyedeBir(1000000L)) {
digitalWrite(Led1,!digitalRead(Led1) );
}
if (TimerLed2.MicrosaniyedeBir(500000L)) {
digitalWrite(Led2,!digitalRead(Led2) );
}
}

0 comments on commit 569a448

Please sign in to comment.