graycatlabs / PyBBIO

A Python library for Arduino-style hardware IO support on the Beaglebone
https://github.com/graycatlabs/PyBBIO/wiki
MIT License
251 stars 89 forks source link

not an issue but a doubt #99

Open iamharshit opened 8 years ago

iamharshit commented 8 years ago

just wanted to know like we can use external interrupt ,can we use timer interrupt too in beagle?

alexanderhiam commented 8 years ago

Well, that depends what kind of accuracy and resolution you need. There's plenty of ways to do timed tasks in GNU/Linux, like cron, or event-driver frameworks (e.g. Twisted or Tornado for Python).

iamharshit commented 8 years ago

actually i was working on implementing a rpm-encoder on beagle using PyBBIO, but for that i needed external interrupt and timer interrupt , although i got to know how to use external interrupt in PyBBIO, but still stuck on how to use timer interrupt in PyBBIO. any direction from you?

alexanderhiam commented 8 years ago

Have you looked at using the eQEP modules? They can very precisely count steps from an encoder.