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: USBDevice USBMSD_SD mbed
Fork of USBMSD_SD_HelloWorld_Mbed by
Diff: main.cpp
- Revision:
- 10:cf8fd2b6ca23
- Parent:
- 9:9c343b9ee6d8
- Child:
- 11:a26e7b7a1221
--- a/main.cpp	Tue Nov 15 09:16:25 2011 +0000
+++ b/main.cpp	Wed Nov 16 11:06:27 2011 +0000
@@ -3,6 +3,18 @@
 
 SDFileSystem sd(p5, p6, p7, p8, "sd");
 
+//This report will contain data to be sent
+HID_REPORT send_report;
+
 int main() {
-    while(1);
+    //Fill the report
+    for(int i = 0; i < 64; i++)
+        send_report.data[i] = i;
+    send_report.length = 64;
+    
+    while (1) {
+        //Send the report
+        sd.send(&send_report);
+        wait(0.1);
+    }
 }
\ No newline at end of file
    