Customizing Keyboard Firmware for GH60

by Armno P.

I have a custom mechanical keyboard built with GH60 Satan PCB. It is currently used by my colleague and she needs some custom keys.

The GH60 PCB uses TMK firmware. I kind of forgot already how to flash the firmware onto a board with TMK so I take this note also for my future self.

Here are steps I use to customize the keyboard’s firmware with custom keys.

the keyboard itself

The keyboard is a 60% with standard ANSI layout. The goals are:

GH60 with arrow keys

I go to then I go to the menu on the top > select Preset > Default 60%. It will load the layout in the editor area.

default 60% layout

First, I want to remap the right shift key to an arrow up.

I go to and search for up. The values in the right column are ones I need.

search for up key on

Back to the, I select the right shift key (it will highlight in red border). Then I change the Top Legend: value from Shift to UP.

And I do the same for LEFT, DOWN, and RIGHT keys.

GH60 with arrow keys

Values are case-insensitive. up and Up and UP are the same key.


I want to have another layer of the keyboard to have more keys. For now it will have only 2 keys on the second layer: esc and print screen.

I map the caps lock and the right alt keys to FN0 - the Function key. I will use them to toggle another layer of the keyboard.

FN0 keys

The function key itself doesn't do anything special, but we will set its behavior later on.

For another layer, there are only 2 keys in this layer: esc and print screen. The layout look like this:


I go to Raw data tab below the keyboard layout. I will need raw data for each layer to build the firmware.

raw data

Here are my raw data for both layers.





Then I go back to, on the home page, paste the copied raw data into Layer0 and Layer1 fields.


FN0 key

Now we are going to set the behavior for the function key FN0.

Still on, under Fn section, at Fn0 I select Layout action > Momentary and select layer 1 on the right side.

fn key behavior

This means when I press and hold FN0 key, it will switch to layer1. When I release the FN0 key, it will switch back to the default layer0.

Then I download the .eep file.

Flashing .eep file to the keyboard

First I clone the tkg-toolkit repo to my computer.

tkg-toolkit repo

Then I copy the downloaded .eep file from the previous step to under mac/ in this folder as I’m using a Mac to flash the firmware.

$ cp ~/Desktop/keymap.eep ~/code/tkg-toolkit/mac

I go to ~/code/tkg-toolkit/mac folder and run

$ ./ keymap.eep

enter Y

and when it says “waiting for bootloder”, I flip the keyboard and press RESET button on the PCB.

reset button

wait for a few seconds and it is done. the new firmware is now on the keyboard.

flasshed firmware

Related posts