Leon Klute / Mbed 2 deprecated frdm_servo_controller

Dependencies:   mbed

Revision:
4:f1782bdd08a8
Parent:
3:8d07dbdd3afc
Child:
5:d62cebed51d2
--- a/main.cpp	Mon Oct 24 08:22:45 2016 +0000
+++ b/main.cpp	Mon Oct 24 08:58:40 2016 +0000
@@ -19,15 +19,15 @@
         if (pc.readable()) {                    // if a key press happens
             Key = pc.getc();                    // get the pressed key
             switch(Key) {                         //Check to see which key pressed
-                case 0xBB:                        //It was the + key...
+                case 0x2B:                        //It was the + key...
                     pc.printf("\n\r +!");
                     if( ServoAngle < 80){
                         ServoAngle = ServoAngle+10;     // increase the angle
                     }
                     break;
-                case 0xBD:                        //It was the - Key key...
+                case 0x2D:                        //It was the - Key key...
                     pc.printf("\n\r -!");
-                    if( ServoAngle > 1){
+                    if( ServoAngle > 10){
                         ServoAngle = ServoAngle-10;     // decrease the angle
                     }
                     break;