test

Dependencies:   mbed

Fork of USBMouse by Simon Ford

Revision:
2:554ad697ebbb
Parent:
0:df124f79944a
--- 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);
     }
 }