Gets user Input to turn the servo to certain degrees
main.cpp
- Committer:
- hzelayasolano22
- Date:
- 2019-01-14
- Revision:
- 7:78973b67cd90
- Parent:
- 5:4fddb8f7d5cc
File content as of revision 7:78973b67cd90:
#include "mbed.h" #include "servo.h" #include "user.h" char userinput; int main(){ setServo(); userInit(); while(1){ userinput = GetKeyInput(); moveServo(userinput); } }