Implement a tiny disk

Dependencies:   USBDevice USBTinyDisk mbed

Committer:
yihui
Date:
Tue Jan 21 08:40:38 2014 +0000
Revision:
0:77da34e2ba0d
initial

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yihui 0:77da34e2ba0d 1 #include "mbed.h"
yihui 0:77da34e2ba0d 2 #include "USBTinyDisk.h"
yihui 0:77da34e2ba0d 3
yihui 0:77da34e2ba0d 4 BusOut leds(LED1, LED2, LED3, LED4);
yihui 0:77da34e2ba0d 5 USBTinyDisk disk;
yihui 0:77da34e2ba0d 6
yihui 0:77da34e2ba0d 7 int main() {
yihui 0:77da34e2ba0d 8 disk.connect();
yihui 0:77da34e2ba0d 9
yihui 0:77da34e2ba0d 10 uint8_t count = 0;
yihui 0:77da34e2ba0d 11 while(1) {
yihui 0:77da34e2ba0d 12 leds = count;
yihui 0:77da34e2ba0d 13 count++;
yihui 0:77da34e2ba0d 14 wait(1);
yihui 0:77da34e2ba0d 15 }
yihui 0:77da34e2ba0d 16 }