Pulse/direction counting
![Mickster](https://forums.parallax.com/uploads/userpics/PXI89ITYSOBG/nRUEB35N9FU5H.png)
in Propeller 2
To increment/decrement a counter based on the high/low state of another input; is there a smartpin mode for doing this or would it need to be coded?
Comments
I think mode %01101 is exactly what you want:
The predefined constant for that mode:
P_REG_UP_DOWN
Outstanding!!!!
Many thanks again, Andy
This P2 is a dream-come-true ![:smile: :smile:](https://forums.parallax.com/resources/emoji/smile.png)