]> git.donarmstrong.com Git - qmk_firmware.git/commit
[Keyboard] GH60 Configurator updates and modernization (#6232)
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>
Tue, 2 Jul 2019 16:22:56 +0000 (09:22 -0700)
committerDrashna Jaelre <drashna@live.com>
Tue, 2 Jul 2019 16:22:56 +0000 (09:22 -0700)
commit308275909d081398231b4aa766846b63ffe7381a
treee43bc3330dbcb0aef2275cc7c24b155d61e0d2f9
parentadda4e137e980d1597f7df7317a3419584e10d4f
[Keyboard] GH60 Configurator updates and modernization (#6232)

* Convert gh60.h to #pragma once include guard

* Lint gh60.h

This commit only changes white space.

* Convert info.json to debug linting

Making this file easier to read.

* Put the label keys first for LAYOUT_60_ansi

* Complete and correct key labels in info.json

* Duplicate LAYOUT as LAYOUT_all

Doing this for backwards compatibility. Has implications for user keymaps.

* Update LAYOUT_all to make sense

The original macro LAYOUT submitted for the GH60 gets a couple of things wrong:

- K49 is placed between Space and Right Alt, when it's actually the right half of a split Backspace
- K3C is assigned before K3D, when K3C is the 1u portion of a 1.75u/1u split Right Shift, and therefore K3D is actually to the left of K3C

The LAYOUT_all macro corrects these issues, but the LAYOUT macro is unchanged, so as to not break user keymaps that depend on it.

This commit also updates the default keymap to use the LAYOUT_all macro, and makes a minor change to the base layer to be more as a user would expect for the corresponding physical layout.

* Correct the layout data for the LAYOUT macro in info.json

Gives proper Configurator rendering.

* Modernize default keymap

Update the default keymap to use more modern QMK conventions.

* Modernize the LED management code

Update the LED management functions to use the GPIO functions, and clean up the led_set_kb() function.

* Update key labels in info.json for LAYOUT_60_ansi_split_rshift

Makes them consistent with the the rest of the file.

* Update Docs links in readme file
keyboards/gh60/gh60.c
keyboards/gh60/gh60.h
keyboards/gh60/info.json
keyboards/gh60/keymaps/default/keymap.c
keyboards/gh60/readme.md