![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Servo
Dependencies: mbed MODSERIAL Servo FastPWM
main.cpp
- Committer:
- AnkePost
- Date:
- 2019-10-11
- Revision:
- 0:60a8a60074a7
- Child:
- 1:f6898c9b8c44
File content as of revision 0:60a8a60074a7:
#include "mbed.h" //#include "HIDScope.h" //#include "QEI.h" #include "MODSERIAL.h" //#include "BiQuad.h" #include "FastPWM.h" //#include <math.h> #include "Servo.h" Serial pc(USBTX, USBRX); Servo servomotor(D3); int main() { while( true ) { servomotor.write(0.2); wait(0.5); servomotor.write(0.4); wait(0.5); pc.printf("hello"); } return 0; }