Skip to content

ondras/macropad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macropad

My Adafruit Macropad 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) 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