This program reads the voltages on the board to ensure they are operating correctly and it implements a USB MSD card reader to verify USB and microSD connectivity.
Dependencies: USBDevice SDFileSystem max32630fthr mbed
Fork of FTHR_USBMSD_Demo by
Revision 8:4bb2ec578490, committed 2017-02-03
- Comitter:
- switches
- Date:
- Fri Feb 03 22:43:55 2017 +0000
- Parent:
- 7:62efbc5411c8
- Commit message:
- replaced dev library with official libarary
Changed in this revision
--- a/main.cpp Mon Dec 19 22:45:22 2016 +0000 +++ b/main.cpp Fri Feb 03 22:43:55 2017 +0000 @@ -31,7 +31,7 @@ gLED = LED_OFF; bLED = LED_OFF; while(1) { - Thread::wait(500); + wait_ms(500); gLED = !gLED; } } @@ -40,7 +40,7 @@ float readMon(MAX14690::monCfg_t monCfg) { pegasus.max14690.monSet(monCfg, MAX14690::MON_DIV4); - Thread::wait(5); + wait_ms(5); return (4.8f * monIn); } @@ -134,12 +134,12 @@ if (!button) { keyboard.mediaControl(KEY_MUTE); ledCnt++; - rLED = (ledCnt & 1); - gLED = (ledCnt & 2); - bLED = (ledCnt & 4); - Thread::wait(500); + gLED = (ledCnt & 1); + bLED = (ledCnt & 2); + rLED = gLED ^ bLED; + wait_ms(500); } else { - Thread::wait(50); + wait_ms(50); } } }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Feb 03 22:43:55 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/176b8275d35d \ No newline at end of file
--- a/pegasus_dev.lib Mon Dec 19 22:45:22 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://developer.mbed.org/users/switches/code/pegasus_dev/#1198227e6421