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.
Diff: main.cpp
- 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;