A Python class for controlling the Pimoroni RGB Keypad for the Raspberry Pi Pico.
Project description
A Python class for controlling the Pimoroni RGB Keypad for the Raspberry Pi Pico.
Compatible with MicroPython and CircuitPython.
keypad = RGBKeypad()
# make all the keys red
keypad.color = (255, 0, 0)
# turn a key blue when pressed
while True:
for key in keypad.keys:
if key.is_pressed():
key.color = (0, 0, 255)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pico-rbgkeypad-0.1.1.tar.gz
(4.9 kB
view details)
File details
Details for the file pico-rbgkeypad-0.1.1.tar.gz
.
File metadata
- Download URL: pico-rbgkeypad-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ded2fef860caaf162254b7916489d9e657a35c3fddae38a0d91294b6478f3277 |
|
MD5 | 0edfbb96cc001d00ff3aa9258a019c61 |
|
BLAKE2b-256 | 296aedf0ca42384ccb020ec9445d8e673c8f111b1d9bcbe48524831d47e612f7 |