summaryrefslogtreecommitdiff
path: root/keyboards/crkbd/keymaps/vlukash_trackpad_left/keymap.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-05-24 23:23:20 -0700
committerGitHub <noreply@github.com>2021-05-24 23:23:20 -0700
commit57158cc3bcd169bc76785099fe2ded359d94eaa2 (patch)
tree8b29410902050e40f99f225e5282c0ee31bfd4e5 /keyboards/crkbd/keymaps/vlukash_trackpad_left/keymap.c
parent8e22da67c1ddafa45b2e4d0ec4449dc79b509b89 (diff)
[Keyboard] Corne - Remove legacy revision support (#12226)
Diffstat (limited to 'keyboards/crkbd/keymaps/vlukash_trackpad_left/keymap.c')
-rw-r--r--keyboards/crkbd/keymaps/vlukash_trackpad_left/keymap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/keyboards/crkbd/keymaps/vlukash_trackpad_left/keymap.c b/keyboards/crkbd/keymaps/vlukash_trackpad_left/keymap.c
index 0bdc9d2658..7940e28025 100644
--- a/keyboards/crkbd/keymaps/vlukash_trackpad_left/keymap.c
+++ b/keyboards/crkbd/keymaps/vlukash_trackpad_left/keymap.c
@@ -13,8 +13,6 @@
extern rgblight_config_t rgblight_config;
#endif
-extern uint8_t is_master;
-
enum layer_names {
_QWERTY,
_LOWER,
@@ -126,7 +124,7 @@ void matrix_init_user(void) {
#endif
//SSD1306 OLED init, make sure to add #define SSD1306OLED in config.h
#ifdef SSD1306OLED
- iota_gfx_init(!has_usb()); // turns on the display
+ iota_gfx_init(); // turns on the display
#endif
}
@@ -145,11 +143,14 @@ void matrix_scan_user(void) {
}
void matrix_render_user(struct CharacterMatrix *matrix) {
- if (is_master) {
+ if (is_keyboard_master()) {
// If you want to change the display of OLED, you need to change here
- matrix_write_ln(matrix, read_layer_state());
- matrix_write_ln(matrix, read_keylog());
- matrix_write_ln(matrix, read_keylogs());
+ matrix_write(matrix, read_layer_state());
+ matrix_write(matrix, "\n");
+ matrix_write(matrix, read_keylog());
+ matrix_write(matrix, "\n");
+ matrix_write(matrix, read_keylogs());
+ matrix_write(matrix, "\n");
} else {
matrix_write(matrix, read_logo());
}
@@ -222,4 +223,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return true;
}
-