[Adafruit BeagleBone IO Python library] Rotary encoder

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
michelinok
 
Posts: 4
Joined: Sun Jan 11, 2015 8:03 am

[Adafruit BeagleBone IO Python library] Rotary encoder

Post by michelinok »

Hi!
I've started (some weeks ago) to use my beaglebone + some external hw (pushbuttons atm).
I'm currently using the Adafruit BeagleBone IO Python library, and it works ok atm.
What i need is to setup (in python of course) an interrupt for the rotary encoder, but i could not find any example.
Currently i can use interrupts for the pushbuttons using the function

GPIO.add_event_detect("P8_12", GPIO.FALLING, callback=DownArrow,bouncetime=200)

Can someone explain how to use interrupts for rotary encoders?

Many thanks!

User avatar
michelinok
 
Posts: 4
Joined: Sun Jan 11, 2015 8:03 am

Re: [Adafruit BeagleBone IO Python library] Rotary encoder

Post by michelinok »

I've found this....but it's for the raspberry....
Can someone "adapt" that code for the beaglebone?

Locked
Please be positive and constructive with your questions and comments.

Return to “Beagle Bone & Adafruit Beagle Bone products”