Charles Duchemin / Mbed 2 deprecated AX13

Dependencies:   AX12 mbed

Committer:
Lorutal
Date:
Mon Jun 11 17:16:09 2018 +0000
Revision:
0:0c7c74d022ff
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Lorutal 0:0c7c74d022ff 1 #include "mbed.h"
Lorutal 0:0c7c74d022ff 2 #include "AX12.h"
Lorutal 0:0c7c74d022ff 3
Lorutal 0:0c7c74d022ff 4 int main() {
Lorutal 0:0c7c74d022ff 5
Lorutal 0:0c7c74d022ff 6 AX12 myax12 (PC_6, PC_7, 1); // tx rx, id
Lorutal 0:0c7c74d022ff 7
Lorutal 0:0c7c74d022ff 8 while (1) {
Lorutal 0:0c7c74d022ff 9 myax12.SetGoal(0); // go to 0 degrees
Lorutal 0:0c7c74d022ff 10 wait (2.0);
Lorutal 0:0c7c74d022ff 11 myax12.SetGoal(300); // go to 300 degrees
Lorutal 0:0c7c74d022ff 12 wait (2.0);
Lorutal 0:0c7c74d022ff 13 }
Lorutal 0:0c7c74d022ff 14 }