rezagholi

Dependencies:   USBDevice mbed

Fork of frdm_USB-HID-Mouse-Keyboard_auto by FRDM-K64F Code Share

Files at this revision

API Documentation at this revision

Comitter:
mrezagholi
Date:
Thu Aug 18 08:31:36 2016 +0000
Parent:
0:92846b9895f1
Commit message:
rezagholi

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 92846b9895f1 -r 9203186a82fd main.cpp
--- a/main.cpp	Thu Dec 31 17:24:55 2015 +0000
+++ b/main.cpp	Thu Aug 18 08:31:36 2016 +0000
@@ -1,21 +1,25 @@
 #include "mbed.h"
-#include "USBMouseKeyboard.h"
-
+//#include "USBMouseKeyboard.h"
+#include "USBSerial.h"
+ 
+//Virtual serial port over USB
+USBSerial serial;
 DigitalOut led(LED1);
-USBMouseKeyboard key_mouse;
+//USBMouseKeyboard key_mouse;
 
 int main(void) {
     while (1) {
-        key_mouse.move(60, 0);
-        key_mouse.doubleClick();
-        key_mouse.keyCode(KEY_CAPS_LOCK);
-        key_mouse.printf("hello world from frdm-k64f. \n");
-        wait(2);
-        key_mouse.move(-60, 0);
-        key_mouse.doubleClick();
-        key_mouse.keyCode(KEY_CAPS_LOCK);
-        key_mouse.printf("hello world from frdm-k64f. \n");
-        led = ((key_mouse.lockStatus() & 0x2) >> 1); /* second bit is caps lock */
-        wait(2);
+        //key_mouse.move(60, 0);
+        //key_mouse.doubleClick();
+        //key_mouse.keyCode(KEY_CAPS_LOCK);
+        //key_mouse.printf("hello world from frdm-k64f. \n");
+        //wait(2);
+        //key_mouse.move(-60, 0);
+        //key_mouse.doubleClick();
+        ///key_mouse.keyCode(KEY_CAPS_LOCK);
+        //key_mouse.printf("hello world from frdm-k64f. \n");
+        //led = ((key_mouse.lockStatus() & 0x2) >> 1); /* second bit is caps lock */
+        //wait(2);
+        serial.printf("abed\r\n");
     }
 }
diff -r 92846b9895f1 -r 9203186a82fd mbed.bld
--- a/mbed.bld	Thu Dec 31 17:24:55 2015 +0000
+++ b/mbed.bld	Thu Aug 18 08:31:36 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/b0220dba8be7
\ No newline at end of file