Hi,
I need help in writing this C Program
Circuit : LED are connected to P1.0 to P1.4 , a push button (push to on) Switch is connected to P1.7 When button is pressed first time, LED on P1.0 switches on, when switch is pressed again, LED on P1.0 switches off and then LED on P1.1 glows, same cycle repeats (P1.2, P1.3, P1.4 then again P1.0) whenever push button is pressed.
Thanks suds sudhirmt@gmail.com
How would anyone be able to show you relevant code "just as an example" without giving you exactly the code you are expected to figure out yourself?
Do you see any pattern in the following?
0001 0010 0100 1000 0001 0010 0100 1000 0001 ...
What is that pattern? How many possible combinations are there? Would you be able to convert from an integer value into a specific pattern in some way?