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.
Revision 4:7f7e27f8d7de, committed 2019-01-13
- Comitter:
- hzelayasolano22
- Date:
- Sun Jan 13 22:13:43 2019 +0000
- Parent:
- 3:5b6a55afc60a
- Child:
- 5:4fddb8f7d5cc
- Commit message:
- First finished draft
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| user.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Jan 13 22:04:47 2019 +0000
+++ b/main.cpp Sun Jan 13 22:13:43 2019 +0000
@@ -2,12 +2,15 @@
#include "servo.h"
#include "user.h"
+char userinput;
+
int main(){
setServo();
userInit();
- while(1)
-
-
-
-
+ while(1){
+ userinput = GetKeyInput();
+ moveservo(userinput);
+
+
+ }
}
\ No newline at end of file
--- a/user.h Sun Jan 13 22:04:47 2019 +0000 +++ b/user.h Sun Jan 13 22:13:43 2019 +0000 @@ -1,3 +1,6 @@ #ifndef USER_H #define USER_H #include "mbed.h" + +void userInit(); +char GetKeyInput();
