ram version see usbmsd_sd.cpp ram ok fs CANNOT be installed - too small use for illustrative purpose only
Dependencies: USBDevice USBMSD_SD mbed
Fork of USBMSD_SD_HelloWorld_Mbed by
Diff: main.cpp
- Revision:
- 11:a26e7b7a1221
- Parent:
- 10:cf8fd2b6ca23
- Child:
- 12:a12eb1fc05f3
--- a/main.cpp Wed Nov 16 11:06:27 2011 +0000 +++ b/main.cpp Wed Nov 16 17:17:42 2011 +0000 @@ -7,14 +7,15 @@ HID_REPORT send_report; int main() { - //Fill the report - for(int i = 0; i < 64; i++) - send_report.data[i] = i; - send_report.length = 64; - + while (1) { + //Fill the report + for (int i = 0; i < 64; i++) + send_report.data[i] = rand() % 100; + send_report.length = 64; + //Send the report sd.send(&send_report); - wait(0.1); + wait(2); } } \ No newline at end of file