Merge pull request #5 from timfee/copilot/fix-oled-flip-rotate-issue

Fix OLED flip/rotation to match Keebart vial_oled reference
This commit is contained in:
Tim Feeley 2026-04-12 15:48:27 -07:00 committed by GitHub
commit c3b899a53c
Failed to generate hash of commit
3 changed files with 17 additions and 7 deletions

View file

@ -15,6 +15,17 @@
#define COMBO_TERM 40 #define COMBO_TERM 40
#define COMBO_ONLY_FROM_LAYER 0 #define COMBO_ONLY_FROM_LAYER 0
// ── OLED ── // ── OLED (matches Keebart vial_oled reference) ──
#define OLED_IC OLED_IC_SSD1312
#define OLED_DISPLAY_128X64
#define OLED_FLIP_SEGMENT
#define OLED_DISPLAY_ADDRESS 0x3C
#define OLED_CHARGE_PUMP_VALUE 0x72
#define OLED_BRIGHTNESS 64
#define OLED_TIMEOUT 0
#define OLED_FADE_OUT
// ── Split sync ──
#define SPLIT_OLED_ENABLE #define SPLIT_OLED_ENABLE
#define SPLIT_WPM_ENABLE #define SPLIT_WPM_ENABLE
#define SPLIT_LAYER_STATE_ENABLE

View file

@ -1,3 +1,5 @@
COMBO_ENABLE = yes COMBO_ENABLE = yes
WPM_ENABLE = yes WPM_ENABLE = yes
OLED_ENABLE = yes OLED_ENABLE = yes
OLED_DRIVER = ssd1306
OLED_TRANSPORT = i2c

View file

@ -127,14 +127,11 @@ uint16_t get_quick_tap_term(uint16_t keycode, keyrecord_t *record) {
} }
} }
// ── OLED display ── // ── OLED display (rotation matches Keebart vial_oled reference) ──
#ifdef OLED_ENABLE #ifdef OLED_ENABLE
oled_rotation_t oled_init_user(oled_rotation_t rotation) { oled_rotation_t oled_init_user(oled_rotation_t rotation) {
if (!is_keyboard_master()) { return OLED_ROTATION_90;
return OLED_ROTATION_180;
}
return rotation;
} }
static void render_layer(void) { static void render_layer(void) {
@ -180,7 +177,7 @@ static void render_wpm(void) {
} }
bool oled_task_user(void) { bool oled_task_user(void) {
if (is_keyboard_master()) { if (is_keyboard_left()) {
render_layer(); render_layer();
render_keycode(); render_keycode();
render_wpm(); render_wpm();