test

Dependencies:   mbed

Fork of USBMouse by Simon Ford

Files at this revision

API Documentation at this revision

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
--- 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);
     }
 }