[Keyboard] Knob Goblin add via support (#11831)

Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
mrT1ddl3s 2021-02-16 10:46:02 -07:00 committed by GitHub
parent 4a10dfb54d
commit 9a2b0a5db1
Failed to generate hash of commit
9 changed files with 107 additions and 37 deletions

View file

@ -74,22 +74,29 @@ static void render_goblin_logo(void) {
__attribute__((weak)) void oled_task_user(void) {
render_goblin_logo();
oled_set_cursor(0,11);
switch (get_highest_layer(layer_state)) {
case 0:
oled_set_cursor(0,11);
oled_advance_char();
oled_write_P(PSTR("ONE\n"), false);
oled_write_P(PSTR(" ONE\n"), false);
break;
case 1:
oled_set_cursor(0,11);
oled_advance_char();
oled_write_P(PSTR("TWO\n"), false);
oled_write_P(PSTR(" TWO\n"), false);
break;
case 2:
oled_set_cursor(0,11);
oled_write_P(PSTR("THREE\n"), false);
break;
case 3:
oled_write_P(PSTR(" FOUR\n"), false);
break;
case 4:
oled_write_P(PSTR(" FIVE\n"), false);
break;
case 5:
oled_write_P(PSTR(" SIX\n"), false);
break;
}
}
#endif