Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d262f6b
commit 569a448
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) ); | ||
} | ||
} |