USB Device for NUCLEO-F103RB, STM32F103C8T6 and Maple Mini boards

Dependents:   MapleMini_USBSerial STM32F103C8T6_USBKeyboard firstDelta STM32F103C8T6_USBSerial ... more

Fork of L152RE_USBDevice by Norimasa Okamoto

Revision:
70:a6dcac43ceaf
Parent:
47:a0cd9646ecd1
--- a/USBHID/USBKeyboard.h	Wed Feb 20 12:41:13 2019 +0000
+++ b/USBHID/USBKeyboard.h	Mon Mar 16 15:03:30 2020 +0000
@@ -118,9 +118,11 @@
     *
     * @param modifier bit 0: KEY_CTRL, bit 1: KEY_SHIFT, bit 2: KEY_ALT (default: 0)
     * @param key character to send
+    * @param holdDown true when the key shall be released in this function
+    *                 false when the key shall be released in the application program
     * @returns true if there is no error, false otherwise
     */
-    bool keyCode(uint8_t key, uint8_t modifier = 0);
+    bool keyCode(uint8_t key, uint8_t modifier = 0, bool release = true);
 
     /**
     * Send a character