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.
main.cpp
- Committer:
- FrankWeissenborn
- Date:
- 2010-12-14
- Revision:
- 1:95977a39e8f2
- Parent:
- 0:03802d76fced
- Child:
- 2:086eed11a40b
File content as of revision 1:95977a39e8f2:
#include "mbed.h"
#include "DogM162.h"
#include "PS2Keyboard.h"
PS2Keyboard ps2kb(p6, p5); // CLK, DAT
//DogM162 display(p11,p13,p14,p15);
DogM162 display(p22, p23, p24, p25, p19, p18, p20, p21);
Serial pc(USBTX, USBRX);
int main() {
pc.printf("Start...");
display.WriteString("Hallo");
wait(2);
display.Clear();
display.WriteString("Hallo22", 2 , DogM162::LINE_2);
PS2Keyboard::keyboard_event_t evt_kb;
while (1) {
if (ps2kb.processing(&evt_kb)) {
pc.printf("[%d]:", evt_kb.type);
for (int i = 0; i < evt_kb.length; i++) {
pc.printf("%02x ", evt_kb.scancode[i]);
}
pc.printf("\n");
}
}
}