USER PASS
/
USBMouse_test
test
Fork of USBMouse by
Revision 2:554ad697ebbb, committed 2018-01-19
- Comitter:
- USER10
- Date:
- Fri Jan 19 01:42:11 2018 +0000
- Parent:
- 1:eb68149218fd
- Commit message:
- test;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r eb68149218fd -r 554ad697ebbb main.cpp --- a/main.cpp Wed Apr 07 13:42:47 2010 +0000 +++ b/main.cpp Fri Jan 19 01:42:11 2018 +0000 @@ -2,12 +2,14 @@ #include "USBMouse.h" DigitalOut led(LED1); + USBMouse mouse; -int main() { +int main(void) { while(1) { - mouse.move(10, 5); - led = !led; - wait(4); + mouse.buttons(1,0,0); + wait(0); + mouse.buttons(0,0,0); + wait(0); } }