Introduction
A helper library for the Adafruit MacroPad RP2040.
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.
This library is designed to work withe the Adafruit MacroPad RP2040. Consider purchasing one from the Adafruit shop:
Adafruit MacroPad RP2040 Bare Bones Adafruit MacroPad RP2040 Starter Kit
Installing to a Connected CircuitPython Device with Circup
Make sure that you have circup installed in your Python environment. Install it with the following command if necessary:
pip3 install circup
With circup installed and your CircuitPython device connected use the following command to install:
circup install adafruit_macropad
Or the following command to update an existing version:
circup update
Usage Example
This example prints out the key pressed, the relative position of the rotary encoder and the state of the rotary encoder switch.
from adafruit_macropad import MacroPad
import time
macropad = MacroPad()
while True:
key_event = macropad.keys.events.get()
if key_event and key_event.pressed:
print("Key pressed: {}".format(key_event.key_number))
print("Encoder: {}".format(macropad.encoder))
print("Encoder switch: {}".format(macropad.encoder_switch))
time.sleep(0.4)
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Metadata
Release files for adafruit-circuitpython-macropad 2.4.8
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 |
|---|---|---|---|---|
| adafruit_circuitpython_macropad-2.4.8.tar.gz | 120.1 kB | Without provenance | Details for adafruit_circuitpython_macropad-2.4.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adafruit_circuitpython_macropad-2.4.8-py3-none-any.whl | Python 3 | none | any | Details for adafruit_circuitpython_macropad-2.4.8-py3-none-any.whl |
Total release size: 132.7 kB
Release files / adafruit_circuitpython_macropad-2.4.8.tar.gz
| Download URL | adafruit_circuitpython_macropad-2.4.8.tar.gz |
|---|---|
| Size | 120.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f29624f1ddd1a15a412ccf00a12fdf0292073f9485e46c1c7f82d8abcbcd102
|
|
BLAKE2b-256 checksum How to use checksums |
b5e6851d1d2af4013b32bce0ac305e8caba86908f58e4b2dbf8ad5fbd3bd7648
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Release files / adafruit_circuitpython_macropad-2.4.8-py3-none-any.whl
| Download URL | adafruit_circuitpython_macropad-2.4.8-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35cbea6a72028fa4c4f28b652ee1b496aca91d9cf6fe7edf9390a738f55826cc
|
|
BLAKE2b-256 checksum How to use checksums |
02907cbcb1e64c6c11dc27cd3ed1d8cf8ed53d1da5848932628beaacbce96967
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for adafruit-circuitpython-macropad 2.4.8
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.