summary refs log tree commit diff
path: root/keyboards/hadron
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-10-10 00:23:10 +0100
committerGitHub <noreply@github.com>2021-10-10 00:23:10 +0100
commitf895e966b780f80fb9882ea512115e845e661f57 (patch)
tree1b827a8aa6e829b7d0d60736fef12d1cc699c773 /keyboards/hadron
parentff85eb8ee5c50ea1720b97713e95f2fb67a200ea (diff)
Fix OLED timeout on recent qwiic migrations (#14775)
Diffstat (limited to 'keyboards/hadron')
-rw-r--r--keyboards/hadron/ver3/ver3.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/keyboards/hadron/ver3/ver3.c b/keyboards/hadron/ver3/ver3.c
index 7eabe58558..40bc57c20e 100644
--- a/keyboards/hadron/ver3/ver3.c
+++ b/keyboards/hadron/ver3/ver3.c
@@ -41,7 +41,8 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) {
 
 __attribute__ ((weak))
 void oled_task_user(void) {
-    oled_write_P(PSTR("LAYER "), false);
+    oled_write_P(PSTR("LAYER"), false);
+    oled_advance_char();
     oled_write_char(get_highest_layer(layer_state) + 0x30, true);
 
     led_t led_state = host_keyboard_led_state();
@@ -71,6 +72,10 @@ void oled_task_user(void) {
     for (uint8_t x = 0; x < MATRIX_ROWS; x++) {
         for (uint8_t y = 0; y < MATRIX_COLS; y++) {
             bool on = (matrix_get_row(x) & (1 << y)) > 0;
+
+            // force on for oled location
+            if((x == 0) && (y >= (MATRIX_COLS - 3))) on = 1;
+
             oled_write_pixel(MATRIX_DISPLAY_X + y + 2, MATRIX_DISPLAY_Y + x + 2, on);
         }
     }
@@ -85,11 +90,6 @@ void oled_task_user(void) {
         oled_write_pixel(MATRIX_DISPLAY_X + 19, MATRIX_DISPLAY_Y+y, true);
     }
 
-    // oled location
-    for (uint8_t x = 0; x < 3; x++) {
-        oled_write_pixel(MATRIX_DISPLAY_X + 14 + x, MATRIX_DISPLAY_Y + 2, true);
-    }
-
     // bodge for layer number left hand side
     for (uint8_t y = 0; y < 8; y++) {
         oled_write_pixel(35, 0 + y, true);