Custom firmware for a 3-key + rotary encoder macropad (https://hackaday.io/project/189914)
- 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
$ make bin
- 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
$ isp55e0 --data-dump flashdata.bin
- edit first 6 bytes of this binary (3 keys, plus 3 for the knob), and write it back:
- edit the next 9 bytes to flash colors (RR1 GG1 BB1 RR2 GG2 BB2 RR3 GG3 BB3)
$ isp55e0 --data-flash flashdata.bin
After flashing, it should show in $ lsusb -d 4249: -vv
You can run the python script with examples in tools/rgb.py