VirtualKey()

From Microduino Wiki
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