tes ir atas semua

Dependencies:   mbed ADS1115 StepperMotor SRF05 TPA81new

Committer:
dmgongora
Date:
Tue Aug 18 09:15:09 2015 +0000
Revision:
0:79e2a8171b16
Child:
1:ef90d942ce78
First working version of the Dynamixel class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dmgongora 0:79e2a8171b16 1 #include "mbed.h"
dmgongora 0:79e2a8171b16 2 #include "Dynamixel.h"
dmgongora 0:79e2a8171b16 3
dmgongora 0:79e2a8171b16 4 int main()
dmgongora 0:79e2a8171b16 5 {
dmgongora 0:79e2a8171b16 6 Dynamixel DX116(p13, p14, p15, 9, 57600);
dmgongora 0:79e2a8171b16 7
dmgongora 0:79e2a8171b16 8 DX116.toggleLED(1);
dmgongora 0:79e2a8171b16 9 wait(0.5);
dmgongora 0:79e2a8171b16 10 DX116.toggleLED(0);
dmgongora 0:79e2a8171b16 11 DX116.move(0);
dmgongora 0:79e2a8171b16 12 wait(1);
dmgongora 0:79e2a8171b16 13 DX116.move(1023);
dmgongora 0:79e2a8171b16 14 }