sparkfun_qwiickeypad
¶
CircuitPython library for the Sparkfun Qwiic Keypad
Author(s): Gaston Williams
Implementation Notes¶
Hardware:
This is library is for the SparkFun Qwiic 12-Button Keypad.
SparkFun sells these at its website: www.sparkfun.com
Do you like this library? Help support SparkFun. Buy a board! https://www.sparkfun.com/products/15290
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class sparkfun_qwiickeypad.Sparkfun_QwiicKeypad(i2c, address=75, debug=False)¶
CircuitPython class for the Sparkfun Qwiic 12-Button Keypad
Initialize Qwiic Keypad for i2c communication.
- property button¶
Return the button at the top of the stack (aka the oldest button). Return -1 for Error/Busy Try Again or 0 for No Button Pressed.
- property connected¶
Check the id of Keypad. Returns True if successful.
- set_i2c_address(new_address)¶
Change the i2c address of Keypad snd return True if successful.
- property time_since_pressed¶
Return the number of milliseconds since the current button in FIFO was pressed.
- update_fifo()¶
Commands keypad to plug in the next button into the register map.
- property version¶
Return the version string for the Keypad firmware.