Home

Awesome

RobotDyn library for Arduino

Build Status

This is a RobotDyn Keypad 3x4 with analog output library for Arduino.

Hardware

Any Arduino / ESP8266 / ESP32 board with an ADC (Analog Digital Converter).

RobotDyn Keypad 3x4 Analog

Pins

KeypadAny Arduino boardWeMos D1 & R2 / Node MCUWeMos LOLIN32
VCC5V (or 3.3V)3V33V3
GNDGNDGNDGND
OUTA0 (ANALOG pin)A0 (ADC0)A0 = SVP (GPIO36)

Example

Arduino IDE | Examples | Erriez RobotDyn Keypad 3x4 Analog:

Documentation

Usage

Initialization

#include <ErriezRobotDynKeypad3x4Analog.h>

// Connect the keypad OUT pin to the ANALOG pin of an Arduino / ESP8266 / ESP32 board
#define KEYPAD_ANALOG_PIN   A0

// Create keypad object
RobotDynKeypad3x4Analog keypad(KEYPAD_ANALOG_PIN);

Get buttons

// Read buttons:
// -1:    Buttons up
// 0..11: Button down
int keypadState = keypad.getButtons();

Library dependencies

Library installation

Please refer to the Wiki page.

Other Arduino Libraries and Sketches from Erriez