Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ondras/macropad
My Adafruit Macropad setup
https://github.com/ondras/macropad
Last synced: about 2 months ago
JSON representation
My Adafruit Macropad setup
- Host: GitHub
- URL: https://github.com/ondras/macropad
- Owner: ondras
- Created: 2023-12-02T12:51:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-08T14:48:58.000Z (about 1 year ago)
- Last Synced: 2024-08-04T03:03:01.316Z (5 months ago)
- Language: Python
- Size: 4.26 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-macropad - Multiple Macropad Apps
README
# macropad
My [Adafruit Macropad](https://www.adafruit.com/product/5128) setup. Written in CircuitPython. Clone and copy files to your CircuitPython drive.## Dependencies
Put these into `lib/`:
```
adafruit_display_shapes/
adafruit_display_text/
adafruit_hid/
adafruit_midi/
asyncio/
adafruit_debouncer.mpy
adafruit_macropad.mpy
adafruit_simple_text_display.mpy
adafruit_ticks.mpy
colorsys.mpy
neopixel.mpy
```## Features / apps
Switch individual apps by holding button #2 (top-right) and rotating the rotary encoder.
### Desktop
Contains keyboard shortcuts, mostly for `git` workflows. Rotary encoder adjusts volume.
### DaVinci Color
Used for color grading in DaVinci Resolve. Hold modifier keys (Lift / Gamma / Gain / Offset / Saturation) and rotate the rotary encoder. Hold down both a modifier *and* a color key to perform the adjustment on one color channel.
**Note:** There is no API to control DaVinci Resolve. To circumvent this, the macropad acts as an *absolute mouse hid device* and fakes mouse movement; to move individual sliders, this virtual cursor moves to their pre-computed position. This means that the functionality is dependent on:
- screen size (`SCREEN` in `davinci.py`)
- taskbar height (`TASKBAR` in `davinci.py`)
- the willingness of your OS to accept an absolute mouse hid device (tested on W11 only)### MIDI Tones
Play individual MIDI notes. Rotary encoder adjusts octave. Scales are always C-based; use software (such as [midi-juggler](https://ondras.github.io/midi-juggler/)) to transpose. Top-center button can be used to switch scales:
- harmonic major
- natural minor
- major/minor pentatonic
- major/minor blues hexatonic### MIDI Chords
Play MIDI chord triads. Rotary encoder adjusts octave.
### Elite: Dangerous
Some useful keyboard shortcuts: FSD, FSS, Galaxy/system map, Ship lights/nightvision, Cold running, Cargo scoop, Landing gear