Skip to content

Instantly share code, notes, and snippets.

@evantancy
Last active April 16, 2022 12:45
Show Gist options
  • Save evantancy/f873937dad44c48106edc5e17ad6d7ec to your computer and use it in GitHub Desktop.
Save evantancy/f873937dad44c48106edc5e17ad6d7ec to your computer and use it in GitHub Desktop.
How to flash your Leopold FC660C keyboard with the Hasu controller (ATMega32U4) for customizing any key

Leopold FC660C Hasu controller

  1. edit keymap on tmk keyboard editor, and download the layout.hex file

  2. get dfu-programmer using apt, or downloading from source and building

Method 1 (APT): sudo apt install dfu-programmer

Method 2 (building from source)

cd ~/install_dir/
wget https://github.com/dfu-programmer/dfu-programmer/archive/refs/tags/v0.7.1.tar.gz
tar -xzf dfu-programmer-0.7.1.tar.gz
cd dfu-programmer/ && ./bootstrap.sh && .configure
make -j24 && sudo make install -j24
  1. make sure your keyboard is in bootloader mode keep it plugged, flip it over and press the button

  2. flash

sudo dfu-programmer atmega32u4 erase
sudo dfu-programmer atmega32u4 flash layout.hex
sudo dfu-programmer atmega32u4 reset

Afterwards you're good to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment