Hever Zelaya Solano / ServorKeyboard

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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();