This is my first program on mbed.org. A Small program for KL25Z that'll act as a Volume Control, thanks to samux for his code with USB keyboard support (https://mbed.org/users/samux/code/USBKeyboard_HelloWorld/) Just added functionality to let the user use the Touch Slider on the KL25Z board to control system volume.
Dependencies: mbed TSI MMA8451Q USBDevice
Fork of USBKeyboard_HelloWorld by
Revision 5:03a4211d593a, committed 2012-10-14
- Comitter:
- samux
- Date:
- Sun Oct 14 12:46:51 2012 +0000
- Parent:
- 4:f0df6aae7147
- Child:
- 6:17871da2a7e4
- Commit message:
- use mbed official USBDevice library
Changed in this revision
--- a/USBDevice.lib Wed Nov 30 11:04:28 2011 +0000 +++ b/USBDevice.lib Sun Oct 14 12:46:51 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/samux/code/USBDevice/#65a34d6b5e22 +http://mbed.org/users/mbed_official/code/USBDevice/#6d85e04fb59f
--- a/main.cpp Wed Nov 30 11:04:28 2011 +0000 +++ b/main.cpp Sun Oct 14 12:46:51 2012 +0000 @@ -1,14 +1,14 @@ #include "mbed.h" #include "USBKeyboard.h" - + //LED1: NUM_LOCK //LED2: CAPS_LOCK //LED3: SCROLL_LOCK BusOut leds(LED1, LED2, LED3); - + //USBKeyboard USBKeyboard keyboard; - + int main(void) { while (1) { keyboard.mediaControl(KEY_VOLUME_DOWN);
--- a/mbed.bld Wed Nov 30 11:04:28 2011 +0000 +++ b/mbed.bld Sun Oct 14 12:46:51 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/7110ebee3484 +http://mbed.org/users/mbed_official/code/mbed/builds/7110ebee3484 \ No newline at end of file