Charles Duchemin / Mbed 2 deprecated AX13

Dependencies:   AX12 mbed

Revision:
0:0c7c74d022ff
diff -r 000000000000 -r 0c7c74d022ff main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jun 11 17:16:09 2018 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+#include "AX12.h"
+
+int main() {
+
+    AX12 myax12 (PC_6, PC_7, 1); // tx rx, id
+
+    while (1) {
+        myax12.SetGoal(0);    // go to 0 degrees
+        wait (2.0);
+        myax12.SetGoal(300);  // go to 300 degrees
+        wait (2.0);
+    }
+}
\ No newline at end of file