Question: This code in arduino currently lights up 4 LED's and depicts the binary counter from 0 to 15 (0000 to 1111). However, I need to
This code in arduino currently lights up 4 LED's and depicts the binary counter from 0 to 15 (0000 to 1111). However, I need to add code to make it count backwards too after it finishes 0 to 15. So it should go from 0 to 15 then 15 to 0 in a loop. (0000 to 1111 then 1111 to 0000). You just need to add code to loop and converter I think. Or you might need to add another void to count backwards? Thanks!


OO UNO // an array of the pins used for the binary value int outpins [] = {2, 3, 4, 5); void setup() // put your setup code here, to run once: for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
