Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
nucho
Date:
Tue Aug 17 20:39:05 2010 +0000
Parent:
0:f04f71978041
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r f04f71978041 -r 18439e758b09 main.cpp
--- a/main.cpp	Tue Aug 17 19:11:41 2010 +0000
+++ b/main.cpp	Tue Aug 17 20:39:05 2010 +0000
@@ -1,13 +1,13 @@
 #include "QEI.h"
 #include "TextLCD.h"
 
-#define ROTATE_PER_REVOLUTIONS  24
 
 TextLCD lcd(p5, p6, p11, p12, p13, p14); // rs, e, d0-d3
 Serial pc(USBTX, USBRX);
 
+#define ROTATE_PER_REVOLUTIONS  24
 //Use X4 encoding.
-QEI wheel(p29, p30, NC, ROTATE_PER_REVOLUTIONS, QEI::X4_ENCODING);
+QEI wheel(p30, p29, NC, 24, QEI::X4_ENCODING);
 //Use X2 encoding by default.
 //QEI wheel (p29, p30, NC, 624);