Project for 380

Dependencies:   mbed Servo

Revision:
1:679934743c5e
Parent:
0:110dc3bbf9c1
--- a/main.cpp	Fri Sep 27 15:21:03 2019 +0000
+++ b/main.cpp	Sat Sep 28 17:28:05 2019 +0000
@@ -1,6 +1,7 @@
 // Continuously sweep the servo through it's full range
 #include "mbed.h"
 #include "Servo.h"
+#include "stdio.h"
 
 Servo servo_1(D3);
 Servo servo_2(D5);
@@ -44,13 +45,17 @@
 }
 
 int main() {
-    printf ("test start");
+    printf ("\n test start\n");
     wait(1.0);
     //test_write(servo_1);
-    test_position(servo_1);
+    //test_position(servo_1);
     int x = 0;
+    char n;
+    int y;
     while (1){
-        printf ("Test %d ", x);
+        printf ("Test %d \n", x);
         x +=1;
+        scanf("%1c", &n);
+        printf("You said, %c \n", n);
     }
 }
\ No newline at end of file