Browse Source

Update to newer QMK conventions

master
Ermer, Maximilian 3 years ago
parent
commit
75d4960328
  1. 5
      config.h
  2. 10
      keymap.c
  3. 2
      rules.mk

5
config.h

@ -39,10 +39,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define TAPPING_TERM 200
// Recommended for heavy chording.
// #define QMK_KEYS_PER_SCAN 4
//#define QMK_KEYS_PER_SCAN 4
// Prevent normal rollover on alphas from accidentally triggering mods.
#define IGNORE_MOD_TAP_INTERRUPT
// NOT NEEDED ANYMORE - IS DEFAULT NOW ANYWAYS
//#define IGNORE_MOD_TAP_INTERRUPT
// Consider a rapid key successions as a HOLD and not a TAP,
// even if HOLD is shorter than TAPPING_TERM

10
keymap.c

@ -200,7 +200,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
bool _macro_is_recording = false;
void dynamic_macro_record_start_user(void) {
void dynamic_macro_record_start_user(int8_t direction) {
_macro_is_recording = true;
}
@ -251,12 +251,14 @@ void oled_render_empty_line(void) {
}
void render_keylock_status(uint8_t led_usb_state) {
led_t led_state = host_keyboard_led_state();
oled_write_P(PSTR("Lock: "), false);
oled_write_P(PSTR("N"), led_usb_state & (1 << USB_LED_NUM_LOCK));
oled_write_P(PSTR("N"), led_state.num_lock);
oled_write_P(PSTR(" "), false);
oled_write_P(PSTR("C"), led_usb_state & (1 << USB_LED_CAPS_LOCK));
oled_write_P(PSTR("C"), led_state.caps_lock);
oled_write_P(PSTR(" "), false);
oled_write_ln_P(PSTR("S"), led_usb_state & (1 << USB_LED_SCROLL_LOCK));
oled_write_ln_P(PSTR("S"), led_state.scroll_lock);
}
void render_bootmagic_status(bool status) {

2
rules.mk

@ -1,5 +1,5 @@
OLED_ENABLE = yes
OLED_DRIVER = SSD1306
OLED_DRIVER = ssd1306
EXTRAKEY_ENABLE = yes # Audio control and System control
MOUSEKEY_ENABLE = yes
COMBO_ENABLE = yes

Loading…
Cancel
Save