forked from mirrors/qmk_firmware
308275909d
* 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
27 lines
727 B
C
27 lines
727 B
C
#include "gh60.h"
|
|
|
|
|
|
extern inline void gh60_caps_led_on(void);
|
|
extern inline void gh60_poker_leds_on(void);
|
|
extern inline void gh60_fn_led_on(void);
|
|
extern inline void gh60_esc_led_on(void);
|
|
extern inline void gh60_wasd_leds_on(void);
|
|
|
|
extern inline void gh60_caps_led_off(void);
|
|
extern inline void gh60_poker_leds_off(void);
|
|
extern inline void gh60_fn_led_off(void);
|
|
extern inline void gh60_esc_led_off(void);
|
|
extern inline void gh60_wasd_leds_off(void);
|
|
|
|
|
|
void led_set_kb(uint8_t usb_led) {
|
|
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
|
|
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
|
gh60_caps_led_on();
|
|
} else {
|
|
gh60_caps_led_off();
|
|
}
|
|
|
|
led_set_user(usb_led);
|
|
}
|