Skip to content

mgrenonville/3keys_1knob

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3keys_1knob

Custom firmware for a 3-key + rotary encoder macropad (https://hackaday.io/project/189914)

Installation

Prerequisite

  • Add yourself to plugdev group ($ usermod -a -G plugdev <username>)
  • Copy udev/99-macropad.rules to /etc/udev/rules.d/
  • Reload udev rules $ udevadm control --reload-rules
  • Eventually replug the device

compile:

$ make bin

compile & flash to pad:

  • if on original firmware: depending on hardware you need to connect P3.6 to 5V (VCC) using a 1k resistor or P1.5 to GND, while connecting USB
  • if on this firmware: press key1 while connecting USB
  • $ make flash

configure keys:

  1. $ isp55e0 --data-dump flashdata.bin
  2. edit first 6 bytes of this binary (3 keys, plus 3 for the knob), and write it back:
  3. edit the next 9 bytes to flash colors (RR1 GG1 BB1 RR2 GG2 BB2 RR3 GG3 BB3)
  4. $ isp55e0 --data-flash flashdata.bin

Runtime

lsusb

After flashing, it should show in $ lsusb -d 4249: -vv

Changing colors

You can run the python script with examples in tools/rgb.py

About

Custom firmware for a 3-key + rotary encoder macropad (https://hackaday.io/project/189914)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.7%
  • Python 6.8%
  • Makefile 1.5%