From d4fd2c14b6569405352ae25852e9983599dbd029 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Apr 2026 23:04:07 +0000 Subject: [PATCH] =?UTF-8?q?Revert=20all=20OLED=20changes=20from=20PR=20#4?= =?UTF-8?q?=20and=20#5=20=E2=80=94=20restore=20original=20working=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- users/timfee/config.h | 5 ---- users/timfee/rules.mk | 2 -- users/timfee/timfee.c | 68 ------------------------------------------- 3 files changed, 75 deletions(-) diff --git a/users/timfee/config.h b/users/timfee/config.h index b542624b..5ce6c48c 100644 --- a/users/timfee/config.h +++ b/users/timfee/config.h @@ -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 diff --git a/users/timfee/rules.mk b/users/timfee/rules.mk index 260c9eb0..ab1e4381 100644 --- a/users/timfee/rules.mk +++ b/users/timfee/rules.mk @@ -1,3 +1 @@ COMBO_ENABLE = yes -WPM_ENABLE = yes -OLED_ENABLE = yes diff --git a/users/timfee/timfee.c b/users/timfee/timfee.c index 01cf5f72..7bac4a4f 100644 --- a/users/timfee/timfee.c +++ b/users/timfee/timfee.c @@ -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