Implement a tiny disk

Dependencies:   USBDevice USBTinyDisk mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "USBTinyDisk.h"
00003 
00004 BusOut leds(LED1, LED2, LED3, LED4);
00005 USBTinyDisk disk;
00006 
00007 int main() {
00008     disk.connect();
00009     
00010     uint8_t count = 0;
00011     while(1) {
00012         leds = count;
00013         count++;
00014         wait(1);
00015     }
00016 }