Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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; iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started