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 1:2178724f96f1, committed 2011-03-08
- Comitter:
- edwinb
- Date:
- Tue Mar 08 16:07:19 2011 +0000
- Parent:
- 0:3774ff2f9a59
- Commit message:
- a small typo in the code has been fixed
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/main.cpp	Sun Jan 30 15:05:39 2011 +0000
+++ b/main.cpp	Tue Mar 08 16:07:19 2011 +0000
@@ -26,7 +26,7 @@
             mLED2=1;
         } else {
             wait(0.2);
-            printf("%c", symbol);
+           // printf("%c", symbol);
             lcd.locate(0,0);
             lcd.printf("Keyboard: \n");
 
@@ -38,6 +38,7 @@
                 //lcd.cls();
                 lcd.locate(i,1);
                 lcd.printf("%c", buffer[i]); //print the char array
+                printf("%c", buffer[i]); //print to the terminal
                 printf(" \t");
                 //wait(0.9);
                 if (i==16) {
@@ -45,7 +46,7 @@
                     i=0;
                     delete [] buffer;
 
-x
+
                 }
                 //anytime a key is pressed one of LEDs light up
                 mLED=1;