Revert all OLED changes from PR #4 and #5 — restore original working code

Removes ALL OLED code added by previous Copilot agents. The original user
code had no OLED customization — the keyboard-level defaults handled the
displays correctly. Files now exactly match their pre-PR#4 state (b686f0a).

Agent-Logs-Url: https://github.com/timfee/qmk_userspace/sessions/efa72aeb-690c-4f81-8e57-678197ccc4ab

Co-authored-by: timfee <3246342+timfee@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-12 23:04:07 +00:00 committed by GitHub
commit d4fd2c14b6
Failed to generate hash of commit
3 changed files with 0 additions and 75 deletions

View file

@ -14,8 +14,3 @@
#define COMBO_COUNT 8
#define COMBO_TERM 40
#define COMBO_ONLY_FROM_LAYER 0
// ── OLED / split sync ──
#define SPLIT_OLED_ENABLE
#define SPLIT_WPM_ENABLE
#define SPLIT_LAYER_STATE_ENABLE

View file

@ -1,3 +1 @@
COMBO_ENABLE = yes
WPM_ENABLE = yes
OLED_ENABLE = yes

View file

@ -2,7 +2,6 @@
// ── State for require-prior-idle ──
static uint16_t last_key_time = 0;
static uint16_t last_keycode = KC_NO;
// ── Combos (matching Vial config) ──
const uint16_t PROGMEM lparen_combo[] = {KC_R, KC_T, COMBO_END};
@ -28,7 +27,6 @@ combo_t key_combos[COMBO_COUNT] = {
// ── Require-prior-idle: bypass hold-tap during typing ──
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
last_keycode = keycode;
uint16_t elapsed = timer_elapsed(last_key_time);
switch (keycode) {
@ -126,69 +124,3 @@ uint16_t get_quick_tap_term(uint16_t keycode, keyrecord_t *record) {
default: return QUICK_TAP_TERM;
}
}
// ── OLED display ──
#ifdef OLED_ENABLE
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
if (!is_keyboard_master()) {
return OLED_ROTATION_180;
}
return rotation;
}
static void render_layer(void) {
oled_write_P(PSTR("Layer: "), false);
switch (get_highest_layer(layer_state)) {
case 0:
oled_write_ln_P(PSTR("Base"), false);
break;
case 1:
oled_write_ln_P(PSTR("Symbols"), false);
break;
case 2:
oled_write_ln_P(PSTR("Nav/Fn"), false);
break;
default:
oled_write_ln_P(PSTR("???"), false);
break;
}
}
static void render_keycode(void) {
oled_write_P(PSTR("Key: 0x"), false);
// Print last keycode as 4-digit hex
static const char hex[] = "0123456789ABCDEF";
char buf[5];
buf[0] = hex[(last_keycode >> 12) & 0xF];
buf[1] = hex[(last_keycode >> 8) & 0xF];
buf[2] = hex[(last_keycode >> 4) & 0xF];
buf[3] = hex[ last_keycode & 0xF];
buf[4] = '\0';
oled_write_ln(buf, false);
}
static void render_wpm(void) {
oled_write_P(PSTR("WPM: "), false);
uint8_t wpm = get_current_wpm();
char buf[4];
buf[0] = (wpm >= 100) ? ('0' + wpm / 100) : ' ';
buf[1] = (wpm >= 10) ? ('0' + (wpm / 10) % 10) : ' ';
buf[2] = '0' + wpm % 10;
buf[3] = '\0';
oled_write_ln(buf, false);
}
bool oled_task_user(void) {
if (is_keyboard_master()) {
render_layer();
render_keycode();
render_wpm();
} else {
render_wpm();
render_layer();
}
return false;
}
#endif