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: SDFileSystem USBHost_SAMPLE mbed
Revision 2:15011081d5a3, committed 2017-11-20
- Comitter:
- USER10
- Date:
- Mon Nov 20 07:05:46 2017 +0000
- Parent:
- 1:8ee1e5bda8ec
- Commit message:
- test;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8ee1e5bda8ec -r 15011081d5a3 main.cpp
--- a/main.cpp Mon Nov 20 06:58:42 2017 +0000
+++ b/main.cpp Mon Nov 20 07:05:46 2017 +0000
@@ -4,20 +4,20 @@
DigitalOut led(LED1);
int i=0;
-SDFileSystem sd(p5, p6, p7, p8, "sd");
+//SDFileSystem sd(p5, p6, p7, p8, "sd");
Serial pc1(p13, p14);//tx1, rx1
void onKey(uint8_t key) {
pc1.printf("%c", key);
-
+ /*
++i;
FILE *fp;
fp = fopen("/sd/keylog/log.csv", "a");
fprintf(fp, "Key[%d], :,0x%x,:,%c\r\n", i, key, key);
fclose(fp);
-
+ */
}
void keyboard_task(void const *) {
@@ -39,12 +39,12 @@
}
int main() {
-
+ /*
mkdir("/sd/keylog", 0777);
FILE *fp;
fp = fopen("/sd/keylog/log.csv","w");
fclose(fp);
-
+ */
Thread keyboardTask(keyboard_task, NULL, osPriorityNormal, 256 * 4);
while(1) {