AnalogKey()

From Microduino Wiki
Jump to: navigation, search

AnalogKey(PIN)


Description

AnalogKey is used to create an instance of the object AnalogKey, which is used to detect analog sensors and receives signal between the minimum and maximum, and its name will be used in the code.
When creating a library, you need to call #include <Microduino_Key.h> head file.

Parameters

  • PIN: set sensors interface pins.

Sample

  • Create an analog switch instance
#include <Microduino_Key.h>

AnalogKey keyDigital(A0); //Create an analog switch instance, named keyDigital and connect it to pin A0

void setup() {

}

void loop() {

}


Others