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.2.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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: micro_keypad-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 2ceb7e51800c72bc7216c3a9709bbd6ecd7ff1d5d24f4d17f164bc049d0724e4
MD5 c9bd7a8af791f440993cee1886fd99ec
BLAKE2b-256 8f389a84bf5e69c75de1e3deac70ab5e56ce46d96a86d7a38e6db9c6a971ba88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: micro_keypad-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 845a15b476bbf75e7c05cf9efff69fd37d201df71a6a5fb03b2dd4a18372b9e7
MD5 f3bc18b6e826eb271330bd3cecd89714
BLAKE2b-256 5e0e92ece097c96ce1bacda5f40e6300d99a241d6bcdaa72ddb29cbe85c4f449

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