Skip to main content

The Keypad library is designed to simplify keypad interfacing in Micropython-based hardware projects.

Project description

micro-keypad

The Keypad library is designed to simplify keypad interfacing in Micropython-based hardware projects. Whether you’re working on a Raspberry Pi, ESP32, or any other Micropython-compatible board, this library provides an intuitive API for handling button presses and releases.

Example usage

from keypad import Keypad

keypad_rows = [9, 8, 7, 6]
keypad_columns = [5, 4, 3, 2]


def main():
    keypad = Keypad(keypad_rows, keypad_columns)
    print("Please enter a key from the keypad")
    key = None
    while key != "*":
        if key := keypad.scankeys:
            print(f"You have pressed: {key}")


if __name__ == "__main__":
    main()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

micro_keypad-0.0.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

micro_keypad-0.0.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file micro_keypad-0.0.3.tar.gz.

File metadata

  • Download URL: micro_keypad-0.0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for micro_keypad-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cb37fe17230850dba8451b7bd676b3051407f09bb1fe9b1bdb54bf94b4ab4abb
MD5 55cafe7648f514e469f8cb6cad9a5bb5
BLAKE2b-256 827fa652e80838b752fd7c79f11677ecbdacbb8d8012b3b21c74410dda16fb98

See more details on using hashes here.

File details

Details for the file micro_keypad-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: micro_keypad-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for micro_keypad-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e37be9b6e4050622ae715054e5b0549d5659034111e7edcbfc19a015a3864466
MD5 4c7ac1a84275e06bafe0238c21122a24
BLAKE2b-256 3858563151fecabe9c4fce16ff93c78d6c8cfd1976384b205e13105b64070483

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page