Closed tekk closed 4 years ago
I've modified the approach for detecting COR pin state - instead of sleep(1); I've added timeout which starts over if there is another 1 on COR pin detected. I've changed the timeout to 250ms, the repeating is now much more responsive.
sleep(1);
I've modified the approach for detecting COR pin state - instead of
sleep(1);
I've added timeout which starts over if there is another 1 on COR pin detected. I've changed the timeout to 250ms, the repeating is now much more responsive.