Debugged library and example main
Dependencies: MX106_not_working mbed-src AX12_final comunication_1
Fork of MX106-custom by
main.cpp@6:941fdda9d110, 2016-06-26 (annotated)
- Committer:
- mattiasub
- Date:
- Sun Jun 26 21:14:50 2016 +0000
- Revision:
- 6:941fdda9d110
- Parent:
- 4:6450eb95727d
- Child:
- 10:2acfa1a84c96
Risolti errori su Communication_1 . Da risolvere ancora MX106
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
clynamen | 0:23acabab7c11 | 1 | #include "mbed.h" |
mattiasub | 6:941fdda9d110 | 2 | #include "communication_1.h" |
dconsoli | 4:6450eb95727d | 3 | #include "MX106.h" |
dconsoli | 4:6450eb95727d | 4 | |
dconsoli | 3:d2c3ac534549 | 5 | /*Connessioni jupers millefori/nucleo: |
dconsoli | 3:d2c3ac534549 | 6 | - rosso 5V |
dconsoli | 3:d2c3ac534549 | 7 | - nero GND |
dconsoli | 3:d2c3ac534549 | 8 | - marrone D2 |
dconsoli | 3:d2c3ac534549 | 9 | - verde D8 |
dconsoli | 3:d2c3ac534549 | 10 | Il connettore va stacato dal dynamixel e non dalla millefori per non scambiare il verso!*/ |
dconsoli | 3:d2c3ac534549 | 11 | |
dconsoli | 3:d2c3ac534549 | 12 | Serial pc(USBTX, USBRX); |
mattiasub | 6:941fdda9d110 | 13 | communication_1 wire(PA_9, PA_10, 9600); |
dconsoli | 4:6450eb95727d | 14 | MX106 motor_21(21, wire, 1); |
ilaria | 1:946c65496383 | 15 | |
dconsoli | 3:d2c3ac534549 | 16 | int main() { |
dconsoli | 3:d2c3ac534549 | 17 | pc.printf("Start run! \n"); |
ilaria | 1:946c65496383 | 18 | } |