my code is giving me a changing output when the output should stay the same, the code should be comparing buttons and passTrue and writing 1 to serial if it’s the same and 0 if it’s not, I didn’t manage to find a pattern.
here’s my code:
Declare a global array called pins and put your pin numbers in that so that you can iterate through them more easily. This will remove a lot of the confusion from your code.
const int pinCount = 10;
int pins[pinCount] = {2,3,4,5,6,7,8,9,10,13};
//now you can iterate through them like this:
for(int i=0; i<pinCount; i++){
pinMode(pins[i], OUTPUT);
}
The stuff you are saying are all good and well but they don’t have any relation to the problem, the stuff in the setup already happend, so only the stuff in the loop should matter, and the only thing there is the checkPass, so I don’t have any idea how your answers relate to my question.
that said I will probably change my code accordingly soon.
possibly I will be able to run the program on an arduino tommorow, maybe it’s a tinkercad issue.