State change with toggle switch and LED?


hi,
i'm building project need led light half second when toggle switch on 'on' position switch off until until toggle switch put on off position, when led light half second switch off etc...
i pretty new o arduino please make answers easy. attached diagram post if didn't understant.

thanks!

the state change detection example show how detect switch has become pressed. when switch becomes pressed, note time , turn led on.

then, periodically, see if led on , has been on long enough. if so, turn off.

the blink without delay examples give ideas.


Arduino Forum > Using Arduino > Programming Questions > State change with toggle switch and LED?


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support