diff --git a/keyboards/splitkb/aurora/corne/keymaps/sporq/oled.c b/keyboards/splitkb/aurora/corne/keymaps/sporq/oled.c index 0ee7098a02..5b1c61eb61 100644 --- a/keyboards/splitkb/aurora/corne/keymaps/sporq/oled.c +++ b/keyboards/splitkb/aurora/corne/keymaps/sporq/oled.c @@ -21,14 +21,15 @@ static uint16_t animation_timer = 0; oled_rotation_t oled_init_user(oled_rotation_t rotation) { if (!is_keyboard_master()) { - return OLED_ROTATION_0; // flips the display 180 degrees if offhand + return OLED_ROTATION_0; } return OLED_ROTATION_270; animation_timer = timer_read(); } -// Spaceship OLED Code Starts Here +// Spaceship OLED starts here +// code made by JBaguley and copied from crkbd/keymaps/retrograde/keymap.c unsigned int state = 0; @@ -272,7 +273,12 @@ static void render_space_animation(void) { state = (state + 1 + (wpm/20)) % (128*2); } -// End of space oled stuff +// End of Spaceship OLED + +// Aurora Corne code starts here +// Made by Soundmonster for the Corne, used by splitkb.com for +// the Aurora Corne and now residing here as well. +// mostly copied from `splitkp/aurora/corne/corne.c` static void render_space(void) { oled_write_P(PSTR(" "), false); @@ -465,6 +471,8 @@ static void render_layer_state(void) { } } +// End of aurora corne things + bool oled_task_user(void) { // time for the next frame? if (timer_elapsed(animation_timer) < FRAME_TIMEOUT) { @@ -483,6 +491,7 @@ bool oled_task_user(void) { } else { render_space_animation(); } + // reset timer after drawing the frame. animation_timer = timer_read(); return false; }