Tomohiro Aoki / Mbed 2 deprecated Nucleo-F446RE_encoder

Dependencies:   mbed QEI

Files at this revision

API Documentation at this revision

Comitter:
Tomo1213
Date:
Wed Jul 10 13:02:53 2019 +0000
Commit message:
commit;

Changed in this revision

QEI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/QEI.lib	Wed Jul 10 13:02:53 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/aberk/code/QEI/#5c2ad81551aa
--- /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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jul 10 13:02:53 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file