Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sandbox keyboard #16021

Merged
merged 14 commits into from
Apr 18, 2022
Prev Previous commit
Next Next commit
Update keyboards/dailycraft/sandbox/rev1/keymaps/oled/keymap.c
Co-authored-by: Drashna Jaelre <[email protected]>
  • Loading branch information
yfuku and drashna committed Feb 10, 2022
commit 899659bd5fbfb494e1c27757f4d8fd8b44646d3d
32 changes: 0 additions & 32 deletions keyboards/dailycraft/sandbox/rev1/keymaps/oled/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,35 +40,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
)
};

#ifdef OLED_ENABLE

void render_status(void) {
switch (get_highest_layer(layer_state)) {
case _0:
oled_write_ln_P(PSTR("Layer: Default"), false);
break;
case _1:
oled_write_ln_P(PSTR("Layer: 1"), false);
break;
case _2:
oled_write_ln_P(PSTR("Layer: 2"), false);
break;
case _3:
oled_write_ln_P(PSTR("Layer: 3"), false);
break;
default:
oled_write_ln_P(PSTR("Layer: Undefined"), false);
}
}

bool oled_task_user(void) {
render_status();
return false;
}

oled_rotation_t oled_init_user(oled_rotation_t rotation) {
return OLED_ROTATION_180;
}

#endif