2 LED Sequence


i want project have 8 led's
first time button pushed first 2 led's blink
second time button pushed led 3 & 4 blink
third time led 5 & 6 blink
fourth time led 7 & 8 blink
and 5th time button pressed, first sequence first 2 leds blink start again etc...

i basic when comes programming. please me started , me start off code switching sequences?

take @ blinkwithoutdelay writing non-blocking blinking code.

take @ statechangedetection example handling button toggling.

create state machine in state changed based on momentary switch being pressed/released. state determine leds blink.

don't try working @ once, small part working. study point understand it. then, add feature. rinse , repeat.


Arduino Forum > Using Arduino > Programming Questions > 2 LED Sequence


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62