jung6717 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Incorporate Encoder library from Wiring. #166

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The addition of the Encoder library from Wiring.  It uses one interrupt pin and 
one other pin (so you 
can have two encoders on the ATmega328).

Original issue reported on code.google.com by dmel...@gmail.com on 2 Jan 2010 at 5:02

GoogleCodeExporter commented 8 years ago
Been messing around with encoder libraries, so if you want help testing this 
let me 
know.  I think combining the interrupt-driven one for speed with the all-pins 
one 
(Quadrature) for flexibility would be good.  We could easily explain that if 
you use pins 
2, 3, it uses the interrupt routines and is fastest, but that you can use the 
other pins if 
you prefer, at the expense of speed.

Original comment by tom.i...@gmail.com on 3 Jan 2010 at 2:49

GoogleCodeExporter commented 8 years ago

Original comment by dmel...@gmail.com on 4 Jul 2010 at 2:59

GoogleCodeExporter commented 8 years ago
Paul Stoffregen's encoder implementation looks quite good. I like that he 
deleted encoder.attach(); for the simpler Encoder myKnob(a, b);  I'd recommend 
it.

http://www.pjrc.com/teensy/td_libs_Encoder.html

Thanks, Paul for sending it my way.

Original comment by tom.i...@gmail.com on 6 Jan 2012 at 11:26

GoogleCodeExporter commented 8 years ago
Having tested Paul's library now, I can say it's very solid, even on 
non-interrupt pins. It works well with multiple encoders as well. I highly 
recommend folding it into the core libraries.

Original comment by tom.i...@gmail.com on 6 Feb 2012 at 4:53

GoogleCodeExporter commented 8 years ago
The library is now available through LIbrary Manager.

Original comment by c.mag...@arduino.cc on 3 Jun 2015 at 9:58