Charles Duchemin / Mbed 2 deprecated AX13

Dependencies:   AX12 mbed

Files at this revision

API Documentation at this revision

Comitter:
Lorutal
Date:
Mon Jun 11 17:16:09 2018 +0000
Commit message:
test

Changed in this revision

AX12.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/AX12.lib	Mon Jun 11 17:16:09 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/cpotron/code/AX12/#14a14b30d205
--- /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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Jun 11 17:16:09 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee
\ No newline at end of file