mirror of
https://github.com/qmk/qmk_userspace.git
synced 2026-04-22 11:30:23 -04:00
Fix OLED flip/rotation: use OLED_ROTATION_90, add OLED_FLIP_SEGMENT and hardware defines from Keebart vial_oled reference
Agent-Logs-Url: https://github.com/timfee/qmk_userspace/sessions/67aa8697-4682-4b27-a7d5-4d2fd67e9c3c Co-authored-by: timfee <3246342+timfee@users.noreply.github.com>
This commit is contained in:
parent
e3869bb1ea
commit
c87a2d0c50
3 changed files with 17 additions and 7 deletions
|
|
@ -15,6 +15,17 @@
|
|||
#define COMBO_TERM 40
|
||||
#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_WPM_ENABLE
|
||||
#define SPLIT_LAYER_STATE_ENABLE
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
COMBO_ENABLE = yes
|
||||
WPM_ENABLE = yes
|
||||
OLED_ENABLE = yes
|
||||
OLED_DRIVER = ssd1306
|
||||
OLED_TRANSPORT = i2c
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||
if (!is_keyboard_master()) {
|
||||
return OLED_ROTATION_180;
|
||||
}
|
||||
return rotation;
|
||||
return OLED_ROTATION_90;
|
||||
}
|
||||
|
||||
static void render_layer(void) {
|
||||
|
|
@ -180,7 +177,7 @@ static void render_wpm(void) {
|
|||
}
|
||||
|
||||
bool oled_task_user(void) {
|
||||
if (is_keyboard_master()) {
|
||||
if (is_keyboard_left()) {
|
||||
render_layer();
|
||||
render_keycode();
|
||||
render_wpm();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue