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: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