diff options
author | QMK Bot <hello@qmk.fm> | 2022-05-11 22:39:48 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-05-11 22:39:48 +0000 |
commit | be08c86451e79b6e1c9a229a8caef62e944f375e (patch) | |
tree | eee29cca54ace3b3a5b236d838cf2dd76640a736 /keyboards/subrezon/la_nc/la_nc.c | |
parent | 6024ade4faa4dabd3fa3501335a93bcb34f7ab17 (diff) | |
parent | ba599270189242a728a230e7879b9c189a22053f (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/subrezon/la_nc/la_nc.c')
-rw-r--r-- | keyboards/subrezon/la_nc/la_nc.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/keyboards/subrezon/la_nc/la_nc.c b/keyboards/subrezon/la_nc/la_nc.c new file mode 100644 index 0000000000..44f1f5afc1 --- /dev/null +++ b/keyboards/subrezon/la_nc/la_nc.c @@ -0,0 +1,45 @@ +// Copyright 2022 Daniel Osipishin (@subrezon) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "la_nc.h" + +#ifdef OLED_ENABLE + +enum layer_id { + _QWE = 0, + _NUM, + _SYM, + _OPT +}; + +bool oled_task_kb(void) { + if (!oled_task_user()) { + return false; + } + oled_write_P(PSTR("Layer:\n"), false); + + switch (get_highest_layer(layer_state)) { + case _QWE : + oled_write_P(PSTR("QWERTY\n"), false); + break; + + case _NUM : + oled_write_P(PSTR("Numbers\n"), false); + break; + + case _SYM : + oled_write_P(PSTR("Symbols\n"), false); + break; + + case _OPT : + oled_write_P(PSTR("Options\n"), false); + break; + + default : + oled_write_P(PSTR("Undefined\n"), false); + } + + return false; +}; + +#endif |