USBMouse Example

Dependencies:   mbed

Committer:
simon
Date:
Thu Oct 22 13:57:14 2009 +0000
Revision:
0:df124f79944a

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon 0:df124f79944a 1 #include "mbed.h"
simon 0:df124f79944a 2 #include "USBMouse.h"
simon 0:df124f79944a 3
simon 0:df124f79944a 4 DigitalOut led(LED1);
simon 0:df124f79944a 5 USBMouse mouse;
simon 0:df124f79944a 6
simon 0:df124f79944a 7 int main() {
simon 0:df124f79944a 8 while(1) {
simon 0:df124f79944a 9 mouse.move(10, 5);
simon 0:df124f79944a 10 led = !led;
simon 0:df124f79944a 11 wait(4);
simon 0:df124f79944a 12 }
simon 0:df124f79944a 13 }