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.
Dependencies: EthernetNetIf TextLCD mbed PS2 HTTPClient
Revision 1:5ae213418d04, committed 2011-02-28
- Comitter:
- benglish6
- Date:
- Mon Feb 28 17:37:46 2011 +0000
- Parent:
- 0:c69af1faeb95
- Commit message:
Changed in this revision
| keyProcess.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/keyProcess.cpp Mon Feb 28 16:56:11 2011 +0000
+++ b/keyProcess.cpp Mon Feb 28 17:37:46 2011 +0000
@@ -123,7 +123,7 @@
}
}
}
- if (evt_kb.scancode[i] == 0x66) {//backspace deletes a character
+ if (evt_kb.scancode[i] == 0x66) {//backspace deletes a character
if(column > 0) column--;
else {
if (row != 0) {
@@ -136,12 +136,10 @@
if (row != 0) {
for(int j = 0; j < 32; j++) {
if(rowstr[((row-1)*16)+j] != '\0') lcd.printf("%c", rowstr[(row-1)*16+j]);
- if(j == (column+16)) lcd.printf("%c", '\0');
}
} else {
for(int j = 0; j < 32; j++) {
- if(rowstr[(row*16)+j] != '\0') lcd.printf("%c", rowstr[(row)*j]);
- if(j == column) lcd.printf("%c", '\0');
+ if(rowstr[(row*16)+j] != '\0') lcd.printf("%c", rowstr[(row)*16+j]);
}
}
}