
Control the rotation Speed of an AX12 servo (Continuous rotation mode). This program is based on the AX12 API developped by Chris Styles.
Fork of AX12-HelloWorld by
main.cpp
- Committer:
- chris
- Date:
- 2011-03-31
- Revision:
- 1:b12b06e2fc2d
- Parent:
- 0:f6f8cf11779f
- Child:
- 2:c3ff024924df
File content as of revision 1:b12b06e2fc2d:
#include "mbed.h" #include "AX12.h" int main() { AX12 myax12 (p9, p10, 1); while (1) { myax12.SetGoal(0); // go to 0 degrees wait (2.0); myax12.SetGoal(300); // go to 300 degrees wait (2.0); } }