Quadrature encoder interface library.
Fork of QEI by
Revision 2:d811f926cf4a, committed 2015-07-29
- Comitter:
- Hapi_Tech
- Date:
- Wed Jul 29 04:39:57 2015 +0000
- Parent:
- 1:aea205976bf8
- Commit message:
- Rev1
Changed in this revision
QEI.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r aea205976bf8 -r d811f926cf4a QEI.cpp --- a/QEI.cpp Tue Jul 28 18:57:19 2015 +0000 +++ b/QEI.cpp Wed Jul 29 04:39:57 2015 +0000 @@ -141,8 +141,9 @@ revolutions_ = 0; pulsesPerRev_ = pulsesPerRev; encoding_ = encoding; -channelA_.mode(intRes); -channelB_.mode(intRes); + channelA_.mode(intRes); + channelB_.mode(intRes); + //Workout what the current state is. int chanA = channelA_.read(); int chanB = channelB_.read();