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 Samuel Mokrani

Committer:
samux
Date:
Thu Nov 03 12:11:29 2011 +0000
Revision:
0:c1db4aaad050
Child:
1:291a88a2c151

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
samux 0:c1db4aaad050 1 #include "mbed.h"
samux 0:c1db4aaad050 2 #include "USBKeyboard.h"
samux 0:c1db4aaad050 3
samux 0:c1db4aaad050 4 USBKeyboard keyboard;
samux 0:c1db4aaad050 5
samux 0:c1db4aaad050 6 int main(void) {
samux 0:c1db4aaad050 7 while (1) {
samux 0:c1db4aaad050 8 keyboard.mediaControl(KEY_VOLUME_DOWN);
samux 0:c1db4aaad050 9 keyboard.printf("Hello World from Mbed\r\n");
samux 0:c1db4aaad050 10 wait(1);
samux 0:c1db4aaad050 11 }
samux 0:c1db4aaad050 12 }