MicroPython Simple Keypad
MicroPython library for interfacing with a keypad matrix
Feature
Supports any keypad matrix configuration.
Easily customizable for different keypad layouts.
Provides exception handling for error management.
Example Usage
Example for 4x4 keypad metrix on MicroPython esp32.
from machine import Pin
from keypad import Keypad
from time import sleep
# Define GPIO pins for rows
row_pins = [Pin(25),Pin(26),Pin(27),Pin(14)]
# Define GPIO pins for columns
column_pins = [Pin(23),Pin(22),Pin(19),Pin(18)]
# Define keypad layout
keys = [
['1', '2', '3', 'A'],
['4', '5', '6', 'B'],
['7', '8', '9', 'C'],
['*', '0', '#', 'D']]
keypad = Keypad(row_pins, column_pins, keys)
while True:
key_pressed = keypad.read_keypad()
if key_pressed:
print("Key pressed:", key_pressed)
sleep(0.1) # debounce and delay
Metadata
Release files for micropython-simple-keypad 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| micropython-simple-keypad-1.0.3.tar.gz | 3.5 kB | Without provenance | Details for micropython-simple-keypad-1.0.3.tar.gz |
Release files / micropython-simple-keypad-1.0.3.tar.gz
| Download URL | micropython-simple-keypad-1.0.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96007d51efa91b3c7c838953326ddfd4dad9a53cf77ec6acd09f38c3ea776ac6
|
|
BLAKE2b-256 checksum How to use checksums |
0e498e665e0c89488e72bd6e0826b2d05ff64ed00cf8db84a3dd925afd20c55e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.10
|
Security for micropython-simple-keypad 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.