page1
START
Do set up
Set next bit pattern
Inter-step delay
Check 'faster' button
Pressed?
Yes
No
Reduce inter-step delay
Minimum delay?
Yes
No
Check 'slower' button
Pressed?
Yes
No
Increase inter-step delay
Maximum delay?
Yes
No
Scan buttons?
Yes
No
Increment button scan counter.
This counter loops back to 0 after 255.
It is to slow the effect of button presses
for human use
and to account for contact bounce
Delay to compensate