Quantcast
Viewing all articles
Browse latest Browse all 30341

Can I have help in finishing the variables?

I figure it was for a 4 digit seven segment display, We would need to know what pins are connected to what parts of the output drivers to make corrections. The line digitalWrite (digitPin[digitDrive], LOW); is incorrect. Digital write needs a pin number as the first parameter. If your setup is the same as the comments that would be an array containing 15, 14, 13, 12 where those are the pin numbers of the segment drivers. The line above won't do that (I don't think it will compile). You then would need to have an index variable that starts at 0 and cycles to 4 (and if (digitDrive == 4){ digitDrive = 0;} // reset to initial digit won't do that both because digitDrive is an array not an int and nothing is incrementing it to make its value increase if it was an int). Then as the comments suggest you would need to get the values to display in to the array dataArray[0-3] somehow


Viewing all articles
Browse latest Browse all 30341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>