Debugged library and example main

Dependencies:   MX106_not_working mbed-src AX12_final comunication_1

Fork of MX106-custom by Team DIANA

main.cpp

Committer:
clynamen
Date:
2016-07-02
Revision:
10:2acfa1a84c96
Parent:
6:941fdda9d110
Child:
11:19e8022f60ea

File content as of revision 10:2acfa1a84c96:

#include "mbed.h"
#include "communication_1.h"
#include "MX106.h"
#include "MX64.h"

/*Connessioni jupers millefori/nucleo: 
    - rosso 5V
    - nero GND
    - marrone D2
    - verde D8 
  Il connettore va stacato dal dynamixel e non dalla millefori per non scambiare il verso!*/
  
Serial pc(USBTX, USBRX);
communication_1 wire(PA_9, PA_10, 9600);
MX106 motor_21(wire, 21, 1);
MX64 motor_22(wire, 22, 1);
   
int main() {  
   pc.printf("Start run! \n");
}