this program is based on the PS/2 keyboard library and the LCD library, the lcd display whatever input is coming from the PS/2 keyboard.

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

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
diff -r 3774ff2f9a59 -r 2178724f96f1 main.cpp
--- 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;