Skip to content
Pawel Szymczykowski edited this page Nov 20, 2015 · 29 revisions

The Keypad class constructs an object that represents a single Keypad attached to the board.

Supported Keypads:

  • VKEY
  • Waveshare AD (Analog)
  • MPR121
  • MPR121QR2
  • Grove QTouch (AT42QT1070)

Parameters

  • General Options

    Property Type Value/Description Default Required
    controller string AT42QT1070, MPR121, MPR121QR2, QTOUCH, VKEY, ANALOG. The Name of the controller to use ANALOG Yes
    keys array Mapping of key values By Device No
  • VKEY Options (controller: "VKEY")

    Property Type Value/Description Default Required
    pin number, string Analog pin Yes
  • ANALOG Options (controller: "ANALOG")

    Property Type Value/Description Default Required
    pin number, string Analog pin Yes
    length number Number of buttons (required only if keys is not specified) Yes

Shape

Property Name Description Read Only
which Value of button pressed from keys array No
timestamp Timestamp at time of button press No

Component Initialization

API

Events

Clone this wiki locally