
Originally Posted by
erice1984
I have a PIC12F683
- 1 pin as an input.
- Using a momentary button
I want to be able to push the button once "single click" and have it execute one thing, and also have it if the button is pressed in quick succession "double click" it executes another thing.
I have looked at
-PULSIN - short click vs. long click
-RCTIME - same, short vs long
-COUNT - single versus double click
-IF..THEN - short vs long click
I want the most efficient way to get it done.
thanks
-eric
You might try the Count command, store the count in a variable and compare the variable to what you want to do. You might get some problems from switch bounce that way though.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks