h

Dependencies:   MMA7660 USBDevice mbed

Fork of lecture2_demo2 by Colin Johnson

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 }