Demo example on FRDM-64F https://ide.mbed.com/compiler/#nav:/rzr-example-mbed;

Dependencies:   FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Utils.h Source File

Utils.h

00001 /// SPDX-License-Indentifier: Apache-2
00002 /// Copyright: 2020+ Philippe Coval <https://purl.org/rzr/>
00003 /// URL: https://os.mbed.com/users/rzrfreefr/code/rzr-example-mbed/
00004 
00005 #pragma once
00006 #include "mbed.h"
00007 #include "USBKeyboard.h"
00008 
00009 class Utils
00010 {
00011 public:
00012     static bool keyboard_key_code(USBKeyboard& usb,
00013                               unsigned char const key,
00014                               unsigned char const modifier=0,
00015                               unsigned int delay=30); //< delay until release
00016 };