Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:d95988777181
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Jul 10 13:02:53 2019 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+#include "QEI.h"
+
+QEI Encoder_R(PA_6,PA_7,NC,1000,QEI::X2_ENCODING);
+QEI Encoder_L(PA_8,PA_9,NC,1000,QEI::X2_ENCODING);
+
+int main(){
+ while(1){
+
+ printf("%d %d\r\n",Encoder_R.getPulses(),Encoder_L.getPulses());
+
+}
\ No newline at end of file