Led Flasher
Led Flasher
pim:
LEDEost FJashicq basic
celaur CRed, blueqraan) Fon
Coxtor paataying
minoCoatran
ü) To tuoak he ccodesio tdurto
The on ot timins and henco The
chatga
pattens
Rrquttomenti CAriy
Tavas Dsttunont TTVA
TM4C12 3Gtdanch pa
Prtocedutei
The falleina ca aotaro inttface
Qnatgia(l8E21)
mito omtrolla
nd upsad to tim
Page No 13
|Exp. No...
Date:
Pxoqam
Red ED ON and OFF Lns
Flashing
/* Bink RED LED
t dine LED RED LED
veid satup )
Pinmode CLED, oUTPUT)
void leopC)
digitate CLED, HIGHH)) +laxn Tho LED OH
delay CiBso); wait fort a econd
digitalwnite (LED, LO;un tae LED
6EF by making Tae uatag Lou
Pregran
() Flashing Reed LED eN and ofE \ng
/* Bink RED LED
t dline LED
LED REDLED
Veid setup)
Pinmole (LED, oUTPUT);
void loop)
digitalite CLED, HIGtH) turo The LED oN
CHIGLH c the vol tagedaue)
delay Ciaso); wat ot aecand
digital wnite (LED, LO)un Tao LED
GEf by making The uatalou
dalay Ciono);wait onacend
,3
Ani02710168
Exp. No...
Page No...S
Date
void loo p)
Aigtalwite CLED, HIGH)l turo The LED
ON CHItt the voltaele
delayCieec), l wit for aa acond
digtal wade CLEDLow); tuno 1te LED.
DEF by niaking tine vetagp Lew
* Bink BlUE ED
dafine LED BLUELED
void setup)
Pinmode CLED, OTPUT);
Vpid Loop)
digitalwatite (LED, HTrH) turn The LeD
ONCHIGH sthe Vatuge louad
dalay C1oool; l lwait for a second
digitál istite CLED, LowiLt n the LED
by making the vetage la
dalay Ciosol; Lait fa a Second
Dutycycle (y. ) ON time
Total time
ON
Tfme
oFF
Time
Duty cgcle
Cms) Cms)
(r)
507
500 000
500 333/
Exp. N0...
Page No..
Date
Void Lbop()
digitaloite(LED,HLGtH );/! tum the LEDoN
CHigh vo ltae level)
dalay (soo ); //wait fot aSacond
digital writelieD, Low ); tunn LED
OEF by Making The voltage Law
Rest:
Naicu, LED ELashing operatiaod a
pfamd wsing Software "Contral by wsing
L-OEF imings The LED Flah
Cesatorl waue fom ganetatian