Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/andypiper/ada-macropad

The configuration for my Adafruit Macropad RP2040
https://github.com/andypiper/ada-macropad

adafruit circuitpython hardware keypad macropad rp2040

Last synced: about 2 months ago
JSON representation

The configuration for my Adafruit Macropad RP2040

Lists

README

        

# Adafruit Macropad RP2040 - CircuitPython code

This repository contains the configurations I use with the [Adafruit Macropad RP2040](https://www.adafruit.com/product/5128) hardware keypad.

This is a set of modifications to the code from the [MACROPAD Hotkeys tutorial](https://learn.adafruit.com/macropad-hotkeys/) by [Phillip Burgess](https://learn.adafruit.com/users/pburgess). It is not a direct fork due to the way the Adafruit Learning System repository contains all of the modules as subdirectories. I'm attempting to watch for any useful updates upstream.

![Macropad hardware](./doc/macropad2.jpg)

## Requirements

- [CircuitPython 7.x for Macropad RP2040](https://circuitpython.org/board/adafruit_macropad_rp2040/)
- currently running on *7.1.1*
- [CircuitPython libraries](https://circuitpython.org/libraries) (in a `/lib` folder on the `CIRCUITPYTHON` volume) - see below for a quick way to install these without downloading the whole bundle:
- adafruit_display_shapes
- adafruit_display_text
- adafruit_hid
- adafruit_midi
- adafruit_debouncer.mpy
- adafruit_macropad.mpy
- adafruit_pixelbuf.mpy
- adafruit_simple_text_display.mpy
- neopixel.mpy

A simple way to install the required CircuitPython dependencies to `/lib` is to [use circup](https://github.com/adafruit/circup) after `code.py` and the `/macros` folder have been copied to the mounted `CIRCUITPYTHON` drive.

```shell
$ circup install --auto
Found device at /Volumes/CIRCUITPY, running CircuitPython 7.1.1.
Searching for dependencies for: ['adafruit_display_shapes', 'adafruit_display_text', 'adafruit_macropad']
Ready to install: ['adafruit_debouncer', 'adafruit_display_shapes', 'adafruit_display_text', 'adafruit_hid', 'adafruit_macropad', 'adafruit_midi', 'adafruit_pixelbuf', 'adafruit_simple_text_display', 'neopixel']

Installed 'adafruit_debouncer'.
Installed 'adafruit_display_shapes'.
Installed 'adafruit_display_text'.
Installed 'adafruit_hid'.
Installed 'adafruit_macropad'.
Installed 'adafruit_midi'.
Installed 'adafruit_pixelbuf'.
Installed 'adafruit_simple_text_display'.
Installed 'neopixel'.
```

It's like living in the future!

[Read more about installing and using Circup](https://learn.adafruit.com/keep-your-circuitpython-libraries-on-devices-up-to-date-with-circup).

## Configuration

The contents of this repository are macros to work with applications running on macOS. If you don't use a Mac, you will almost certainly need to replace references to `Keycode.COMMAND` with a platform-specific alternative (probably `Keycode.CONTROL`, YMMV).

### Alternate version

The `alt-font` branch contains a modification / work-in-progess using a different bitmap font for the display.