These sections
// 1000 my additiion, looking to see if all uniqe
if ((dig1_1 == HIGH) && (dig1_2 == LOW) && (dig1_4 == LOW) && (dig1_8 == LOW)){
digit1 = 1;
}
coud also be done as swith:case
Where dig1_1, 2,4,8 and dig2_1,2,4,8 etc given hi/lo values?
CrossRoads:
I'm guessing 54-69, haven't used one myself yet.
These sections
// 1000 my additiion, looking to see if all uniqe
if ((dig1_1 == HIGH) && (dig1_2 == LOW) && (dig1_4 == LOW) && (dig1_8 == LOW)){
digit1 = 1;
}
coud also be done as swith:case
Where dig1_1, 2,4,8 and dig2_1,2,4,8 etc given hi/lo values?
Sorry, I'm not quite sure I understand?
I thought about making them an array, but then i figured that would make thing more complicated- converting binary 1-2-4-8 to 0-1-2-3 isn't the most intuitive thing...IMO.
I'm personally a KISS follower. Keeping it simple when I can.
When I'm doing the assignments for what each digit is, do I need the numbers in apostrophe's as well, like the letters? Or does it not matter as long as the assignments and the switch cases agree?