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?
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.
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
Post a Comment