Specifications

BASIC Stamp II
Page 252 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
cycles var word ' Variable to store counted cycles.
loop:
debug cls,"How many times can you press the button in 1 second?",cr
pause 1000: debug "Ready, set... ":pause 500:debug "GO!",cr
count 7,1000,cycles
debug cr,"Your score: ", DEC cycles,cr
pause 3000
debug "Press button to go again."
hold: if IN7 = 1 then hold
goto loop