![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
this isn't working the servo just twitches
Dependencies: Servo mbed Motor
main.cpp
- Committer:
- Ty
- Date:
- 2014-10-05
- Revision:
- 0:22157cad3c1e
- Child:
- 1:7fa77283f89e
File content as of revision 0:22157cad3c1e:
#include "mbed.h" #include "Servo.h" Servo launchservo(p21); DigitalIn sw3(p18); int launchswitch; int main() { while(1){ launchservo=0; launchswitch=sw3.read(); }//hey guys when I'm testing this code the servo just twitches it doesn't rotate I don't know whats up }