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.
Dependencies: mbed
Fork of AX12 by
Diff: AX12.h
- Revision:
- 4:1200e221d94d
- Parent:
- 3:ced71d1b2558
diff -r ced71d1b2558 -r 1200e221d94d AX12.h
--- a/AX12.h Sun Apr 10 21:20:44 2011 +0000
+++ b/AX12.h Fri Apr 22 17:52:24 2016 +0000
@@ -78,7 +78,7 @@
* @param pin rx pin
* @param int ID, the Bus ID of the servo 1-255
*/
- AX12(PinName tx, PinName rx, int ID, int baud=1000000);
+ AX12(PinName tx, PinName rx, PinName en, int ID, int baud=1000000);
/** Set the mode of the servo
* @param mode
@@ -180,7 +180,8 @@
private :
- SerialHalfDuplex _ax12;
+ Serial _ax12;
+ DigitalOut direction_port;
int _ID;
int _baud;
