radioshack
New Member
Hi Can someone point me in the direction of some related code for these type of encoders - in C please.
MECHANICAL ROTARY ENCODER SWITCH (INCREMENTAL TYPE)
I have experimented using a 16-way rotary switch hexadecimal rotary (4-bits) on an interrupt (TMR0) to flash an LED on pin-18 (RA1) either faster or slower depending on position.
Now I want to do the same kind of thing (initially) with a inc. encoder (2-bit gray - is this right?) - ideally using the encoder's push button for a zeroing operation.
I have had quite a good look over google to find something similar but must be typing in the wrong search criteria somehow.
I am using a PicKit2 with MPLab and PICC compiler.
Thank you.
MECHANICAL ROTARY ENCODER SWITCH (INCREMENTAL TYPE)
I have experimented using a 16-way rotary switch hexadecimal rotary (4-bits) on an interrupt (TMR0) to flash an LED on pin-18 (RA1) either faster or slower depending on position.
Now I want to do the same kind of thing (initially) with a inc. encoder (2-bit gray - is this right?) - ideally using the encoder's push button for a zeroing operation.
I have had quite a good look over google to find something similar but must be typing in the wrong search criteria somehow.
I am using a PicKit2 with MPLab and PICC compiler.
Thank you.