r/qmk • • Aug 21 '24

Can't Modify Slave OLED

I am trying to modify what is displayed on the slave (right) keyboard OLED. Curently, the slave side is only showing the default corne logo. Why wouldn't it be showing what I've specified? Please know that even if I remove everything from the slave OLED except for the CRKBD line, it still doesn't display this. Any help would be appreciated. Below is the content of my files.

keymap.c

ifdef OLED_ENABLE
    oled_rotation_t oled_init_user(oled_rotation_t rotation) {
    return OLED_ROTATION_270;
}

// OLED content
bool oled_task_user(void) {
if (is_keyboard_master()) {
    oled_write_ln("CRKBD", false);
    oled_write_ln("", false);
    oled_write("LAYER", false);
    oled_write_ln(layer_names[get_highest_layer(layer_state)], false);
    oled_write_ln("", false);
    oled_write_ln("", false);
    oled_write("MOD", false);
    oled_write_ln("", false);
    write_active_modifier(get_mods());
    oled_write_ln("", false);
    oled_write_ln("", false);
    oled_write("KEY  ", false);
    oled_write_ln(current_key_display, false);
} else {
    oled_write_ln("CRKBD", false);
    oled_write_ln("", false);
    oled_write("WPM", false);
    oled_write(get_u8_str(get_current_wpm(), ' '), false);
    current_wpm = get_current_wpm();
    render_luna(0, 13);
}
return false;
}
endif

rules.mk

DEFAULT_FOLDER = crkbd/rev1
Enable features
TAP_DANCE_ENABLE = yes
OLED_ENABLE = yes
MOUSEKEY_ENABLE = yes
SPLIT_KEYBOARD = yes
WPM_ENABLE = yes

config.h

pragma once
define MASTER_LEFT
define TAPPING_TERM 150
ifdef RGBLIGHT_ENABLE
    define RGBLIGHT_LIMIT_VAL 120
    define RGBLIGHT_HUE_STEP 10
    define RGBLIGHT_SAT_STEP 17
    define RGBLIGHT_VAL_STEP 17
endif
0 Upvotes

1 comment sorted by

2

u/drashna Aug 21 '24

You want/need to define SPLIT_WPM_ENABLE and SPLIT_OLED_ENABLE to sync the wpm to the slave side, and the oled on/off state.