SparkFun_Qwiic_Keypad_Arduino_Library (community library)


Name Value
Name SparkFun_Qwiic_Keypad_Arduino_Library
Version 1.2.0
Installs 123
Author SparkFun Electronics
Maintainer SparkFun Electronics <>
Download .tar.gz

Library for the SparkFun Qwiic Keypad An Arduino Library for the Qwiic Keypad. Qwiic Keypad makes reading a 12 button keypad over I2C easy and fast. The button and the time since it was pressed can be read from separate registers. It actually records up to 15 button presses (and their timestamps) to a stack, which can be read in sequence from oldest to newest. It will overflow and continue to remember the most recent 15 presses. Available at:

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.

SparkFun Qwiic Keypad Arduino Library

SparkFun Qwiic Keypad - 12 Button (image removed)

SparkFun Qwiic Keypad - 12 Button (COM-15290)

Keypads are very handy input devices. And there are many great libraries written to interface to keypads! But who wants to tie up 7 GPIOs, have a handful of pull up resistors, and write firmware that scans the keys taking up valuable megahertz? Let's make it easier! The Qwiic Keypad monitors all 12 buttons and allows you to read in any button presses by simply reading a register over I2C. It also implements a stack with time stamps for each key press so you don't need to constantly poll the keypad. Qwiic Keypad even has a configurable I2C address so you can have multiple keypads on the same bus!

With this convenient Arduino Library, you don't need to worry about I2C communication protocol or register addresses. "readButton()" and "readTimeSincePressed()" take care of all the I2C stuff, and simply return the data you want. Try out the examples in this library and you'll be up and running in no time.

Qwiic Keypad is very low power and uses less than 4mA at 3.3V. There are jumpers on the board allowing the user to select between different I2C addresses as well as to remove the I2C pull up resistors if needed.

The Qwiic Keypad comes fully assembled and uses the simple Qwiic interface. No soldering, no voltage translation, no figuring out which pin is SDA or SCL, just plug and go!

The I2C address of Qwiic Keypad is software configurable which means you can hookup over 100 on a single I2C bus!

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • - General library properties for the Arduino package manager.


License Information

This product is open source!

Please review the file for license information.

If you have any questions or concerns on licensing, please contact technical support through the SparkFun forum.

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release any derivative under the same license.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

Browse Library Files