summaryrefslogtreecommitdiff
path: root/keyboards/crkbd/keymaps/toinux/oled.h
blob: 30be16e602fb277e6a562b6a531232c05748b133 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* Copyright 2022 @toinux
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 2 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */

#pragma once

static const char PROGMEM ctrl_icon[2][2][4] = {
    {
        // off
        {0x93, 0x94, 0x95, 0},
        {0xB3, 0xB4, 0xB5, 0},
    },
    {
        // on
        {0x8F ,0x90, 0x91, 0},
        {0xAF ,0xB0, 0xB1, 0},
    }
};

static const char PROGMEM shift_icon[2][2][4] = {
    {
        // off
        {0xD3, 0xD4, 0xB5, 0},
        {0xA8, 0xA9, 0xD5, 0},
    },
    {
        // on
        {0xCF ,0xD0, 0xB1, 0},
        {0xC8 ,0xC9, 0xD1, 0},
    }
};

static const char PROGMEM gui_icon[2][2][4] = {
    {
        // off
        {0x92, 0x8C, 0x8D, 0},
        {0xB2, 0xAC, 0xAD, 0},
    },
    {
        // on
        {0x8E ,0x8A, 0x8B, 0},
        {0xAE ,0xAA, 0xAB, 0},
    }
};

static const char PROGMEM alt_icon[2][2][4] = {
    {
        // off
        {0xB2, 0xCC, 0xCD, 0},
        {0xD2, 0x88, 0x89, 0},
    },
    {
        // on
        {0xAE ,0xCA, 0xCB, 0},
        {0xCE ,0x86, 0x87, 0},
    }
};

void set_keylog(uint16_t keycode, keyrecord_t *record);