My intention was to read the pulse and if > 10 switch the output LOW
void count_pulse() //This defines what the interrupt does
{
pulse++;
if (pulse>10)
{
digitalWrite(start, LOW);
pulse = 0: //reset pulse count??
}
}
My intention was to read the pulse and if > 10 switch the output LOW
void count_pulse() //This defines what the interrupt does
{
pulse++;
if (pulse>10)
{
digitalWrite(start, LOW);
pulse = 0: //reset pulse count??
}
}