Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

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.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-macropad 2.4.7
File Size Uploaded
adafruit_circuitpython_macropad-2.4.7.tar.gz 119.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-macropad 2.4.7
File Interpreter ABI Platform
adafruit_circuitpython_macropad-2.4.7-py3-none-any.whl Python 3 none any Details

Total release size: 132.6 kB

Release files / adafruit_circuitpython_macropad-2.4.7.tar.gz

Download URL adafruit_circuitpython_macropad-2.4.7.tar.gz
Size 119.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e5e4a246ee99313dfcf1e362358d7a2e68786b2d61c98713868acd37ad287daa
BLAKE2b-256 checksum
How to use checksums
de9c9aaf1c8788bf2915ba394cf764df1196751b9c94e80994cade654534c796
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_macropad-2.4.7-py3-none-any.whl

Download URL adafruit_circuitpython_macropad-2.4.7-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2f03d145c456d487eb9110590873c7abd8ed27c7477a5aaac49a86dbcbe1f55
BLAKE2b-256 checksum
How to use checksums
bd3927a4e9a82346a472ca2edd77f4e37a00fed8743c9b6009d56ec15dc832d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

2.4.7 This release

2 release files

2.4.6

2 release files

2.4.5

2 release files

2.4.4

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.8

2 release files

2.1.7

2 release files

2.1.6

2 release files

2.1.5

2 release files

2.1.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page