summaryrefslogtreecommitdiff
path: root/keyboards/subrezon/la_nc/la_nc.c
blob: d97564528235a7c0847f9d8a50397628c0313e87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2022 Daniel Osipishin (@subrezon)
// SPDX-License-Identifier: GPL-2.0-or-later

#include "quantum.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