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.
main.cpp
- Committer:
- dmgongora
- Date:
- 2015-08-19
- Revision:
- 3:e5577be2fe70
- Parent:
- 1:ef90d942ce78
File content as of revision 3:e5577be2fe70:
/***************************************************** - Description: mbed to Dynamixel connection test using the library - Requirements: Dynamixel (i.e. DX116, RX28) MAX3088/MAX485 (RS485 transceiver) - Connections: MAX3088 -- mbed ====================== Pin 1 -- Pin 14 Pin 2 -- Pin 15 Pin 4 -- Pin 13 - Comments: See schematic for wiring details and class documentation for available methods. *****************************************************/ #include "mbed.h" #include "Dynamixel.h" int main() { Dynamixel DX116(p13, p14, p15, 9, 57600); DX116.toggleLED(1); wait(0.5); DX116.toggleLED(0); DX116.setSpeed(0); wait(0.5); DX116.move(0); // MOVE wait(1); DX116.setSpeed(100); wait(0.5); DX116.move(1023); // MOVE wait(1); DX116.setSpeed(1023); wait(1); DX116.move(0); // MOVE }