summaryrefslogtreecommitdiff
path: root/keyboards/knobgoblin/knobgoblin.c
diff options
context:
space:
mode:
authormrT1ddl3s <60518619+mrT1ddl3s@users.noreply.github.com>2021-02-16 10:46:02 -0700
committerGitHub <noreply@github.com>2021-02-16 09:46:02 -0800
commit9a2b0a5db15a48a0297a4b82665d462361261600 (patch)
tree7434f13254f2709fda9d29260aad42acdf976aa6 /keyboards/knobgoblin/knobgoblin.c
parent4a10dfb54d42fe81d1acf578152e264dac725b8d (diff)
downloadqmk_firmware-9a2b0a5db15a48a0297a4b82665d462361261600.tar.gz
qmk_firmware-9a2b0a5db15a48a0297a4b82665d462361261600.zip
[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>
Diffstat (limited to 'keyboards/knobgoblin/knobgoblin.c')
-rw-r--r--keyboards/knobgoblin/knobgoblin.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/keyboards/knobgoblin/knobgoblin.c b/keyboards/knobgoblin/knobgoblin.c
index 8905e770f1..2f5e02b138 100644
--- a/keyboards/knobgoblin/knobgoblin.c
+++ b/keyboards/knobgoblin/knobgoblin.c
@@ -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