I'm having a problem with processing inputs. I'm trying to have it so if and only if there is an input on pin 11, it will count pin 10. Here is how I've been going at it.
void Counter()
{
for(Count==0; digitalRead(11) == HIGH; Count++)
{
while(digitalRead(10) == LOW);
Serial.print(Count);
{
}
}
}
When this is running, it never stops adding to 'Count'
I also only want this code to run once, when it first starts