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:
- 1:afc3bf972645
- Parent:
- 0:207850946233
- Child:
- 2:1a24252c8cb1
--- a/main.cpp Sun Aug 28 14:37:47 2011 +0000 +++ b/main.cpp Wed Sep 07 10:04:49 2011 +0000 @@ -19,17 +19,20 @@ l1=!l1; j=bus.read(); if(j){ + l2=1; //pc.printf("bus: %x i: %d\r",j,i++); if(j==1) usb.keyboard(' '); else if(j==2) - usb.keyboard('i'); + usb.keyboard('w'); // up else if(j==4) - usb.keyboard('m'); + usb.keyboard('s'); // down else if(j==8) - usb.keyboard('j'); + usb.keyboard('a'); // left else if(j==16) - usb.keyboard('l'); + usb.keyboard('d'); // right } + else + l2=0; } }