Ashwin Athani
/
mX_USB_HID
mX mbed BaseBoard USB HID
main.cpp@0:093612081f64, 2010-12-08 (annotated)
- Committer:
- ashwin_athani
- Date:
- Wed Dec 08 06:30:25 2010 +0000
- Revision:
- 0:093612081f64
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ashwin_athani | 0:093612081f64 | 1 | #include "mbed.h" |
ashwin_athani | 0:093612081f64 | 2 | #include "USBMouse.h" |
ashwin_athani | 0:093612081f64 | 3 | |
ashwin_athani | 0:093612081f64 | 4 | DigitalOut led(LED1); |
ashwin_athani | 0:093612081f64 | 5 | USBMouse mouse; |
ashwin_athani | 0:093612081f64 | 6 | |
ashwin_athani | 0:093612081f64 | 7 | int main() { |
ashwin_athani | 0:093612081f64 | 8 | while(1) { |
ashwin_athani | 0:093612081f64 | 9 | mouse.move(10, 5); |
ashwin_athani | 0:093612081f64 | 10 | led = !led; |
ashwin_athani | 0:093612081f64 | 11 | wait(4); |
ashwin_athani | 0:093612081f64 | 12 | } |
ashwin_athani | 0:093612081f64 | 13 | } |