biggmacattack
New Member
Hi... I am using an 08m to count the number times a button is pressed in a specific amount of time (more than 5X). Then depending on the amount of times the button is pressed have the chip illuminate an led. I can't seem to get this to work in the simulator.
So, is this operator error or will the simulator not count the number of inputs?
Thanks
So, is this operator error or will the simulator not count the number of inputs?
Thanks
Code:
Main:
count 3, 5000, b1 'counts the button presses on pin3
If B1 > 5 then ledon 'reads b1 with an if/then
goto main
ledon:
High 1 'led on
pause 500
Low 1 'led off
goto main