Update to work with the latest QMK distribution

master
Adam Kruszewski 2024-03-03 13:56:54 +01:00
parent 843ca1860d
commit daad3d2cc4
4 changed files with 18 additions and 10 deletions

View File

@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* for home-row-mod */
#define TAPPING_TERM 200 // default
#define IGNORE_MOD_TAP_INTERRUPT
//#define IGNORE_MOD_TAP_INTERRUPT // no longer necessary as is default
//#define HOLD_ON_OTHER_KEY_PRESS
#define DYNAMIC_KEYMAP_LAYER_COUNT 5

View File

@ -111,7 +111,7 @@ void render_bootmagic_status(bool status) {
}
}
void oled_render_logo(void) {
void corne_oled_render_logo(void) {
static const char PROGMEM crkbd_logo[] = {
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94,
0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4,
@ -120,12 +120,13 @@ void oled_render_logo(void) {
oled_write_P(crkbd_logo, false);
}
bool oled_task_user(void) {
if (is_keyboard_master()) {
oled_render_layer_state();
oled_render_keylog();
} else {
oled_render_logo();
corne_oled_render_logo();
}
return false;
}

View File

@ -40,3 +40,7 @@ This layer also have the „super-alt-tab” where the tab key is located on the
#+begin_src shell
qmk flash -kb crkbd/r2g ; qmk flash -kb crkbd/r2g
#+end_src
** Troubleshoting
Had to update my Windows usb driver using [[https://docs.qmk.fm/#/driver_installation_zadig]] guide
to have qmk recognise my device when switching to bootloader mode via double clicking the reset button on the keyboard.

View File

@ -1,8 +1,11 @@
MOUSEKEY_ENABLE = no # Mouse keys
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
VIA_ENABLE = no # Enable VIA
OLED_ENABLE = yes
OLED_DRIVER = SSD1306
LTO_ENABLE = yes
SPLIT_KEYBOARD = yes
MOUSEKEY_ENABLE = no # Mouse keys
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
RGB_MATRIX_ENABLE = no
VIA_ENABLE = no # Enable VIA
OLED_ENABLE = yes
OLED_DRIVER = ssd1306
LTO_ENABLE = yes
DYNAMIC_MACRO_ENABLE = yes
TRI_LAYER_ENABLE = yes
TRI_LAYER_ENABLE = yes
MUSIC_ENABLE = no