VirtualKey()

From Microduino Wiki
Revision as of 09:45, 18 September 2017 by Fengfeng (talk | contribs) (Created page with "{| style="width: 800px;" |- | <p style="color: #666666;font-size:220%">'''VirtualKey()'''</p> <br> <p style="color: #E87E05;font-size:135%">Description</p> VirtualKey is used...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

VirtualKey()


Description

VirtualKey is used to create an instance of the object VirtualKey ti identify the short press and long press of buttons virtualized by variable bool and the name of the object will be used in the code.
When creating a library, you need to call #include <Microduino_Key.h> header file.

Parameters

None

Sample

  • Create a virtual button object
#include <Microduino_Key.h>

VirtualKey keyVirtual;  //Create a virtual switch named keyVirtual

void setup() {

}

void loop() {

}


Others