summaryrefslogtreecommitdiff
path: root/keyboards/meow48/meow48.c
blob: 5c0005c3fcab8f88e8f04b8e3d85139fe87a4190 (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
/* Copyright 2022 tsubuan145
 *
 * 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/>.
 */
 
#include "quantum.h"

#ifdef OLED_ENABLE

oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
    return OLED_ROTATION_180;
}

bool oled_task_kb(void) {

    if (!oled_task_user()) { return false; }

    oled_write_P(PSTR("Layer:"), false);
    oled_write_ln(get_u8_str(get_highest_layer(layer_state), ' '), false);

    static const char PROGMEM my_logo[] = {

     
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
    0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 
    0xe0, 0xf0, 0xf8, 0xfc, 0xfc, 0xfc, 0xf8, 0xf0, 0x00, 0x00, 0x00, 0x80, 0xc0, 0xf8, 0xfe, 0xff, 
    0xff, 0xfe, 0x7c, 0x7c, 0xfe, 0xff, 0xff, 0xfe, 0xf8, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
    0x00, 0xfc, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0xff, 0xfe, 0xfe, 0xff, 0x3f, 0x3f, 0xff, 
    0xff, 0xfe, 0xfc, 0xf8, 0x00, 0xe0, 0xf0, 0xfc, 0xfe, 0xff, 0xff, 0xcf, 0xcf, 0xcf, 0xcf, 0xff, 
    0xfe, 0xfc, 0xf8, 0x00, 0xf0, 0xf8, 0xfc, 0xfe, 0xfe, 0xff, 0x7f, 0x3f, 0x7f, 0xff, 0xfe, 0xfe, 
    0xfc, 0xf8, 0xf0, 0x00, 0x3c, 0xfe, 0xff, 0xff, 0xfe, 0xfc, 0xf8, 0xfc, 0xff, 0xff, 0xff, 0xff, 
    0xfe, 0xfc, 0xf8, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x00, 0x80, 0xe0, 0xf8, 0xfc, 0xfe, 0xff, 0xff, 
    0xff, 0x9f, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x80, 0xcf, 0xff, 0xff, 0xff, 0xff, 
    0xff, 0xfc, 0x78, 0x78, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0x00, 0x00, 0x00, 0x00, 0x00, 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
    0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 
    0xff, 0xff, 0xff, 0x7f, 0x00, 0x0f, 0x1f, 0x7f, 0x7f, 0xff, 0xff, 0xff, 0xf9, 0xf9, 0xf9, 0xf9, 
    0xf9, 0x71, 0x00, 0x00, 0x1f, 0x3f, 0x7f, 0xff, 0xff, 0xfe, 0xfc, 0xf8, 0xfc, 0xfe, 0xff, 0xff, 
    0x7f, 0x3f, 0x1f, 0x00, 0x00, 0x0f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x0f, 0x0f, 0x3f, 
    0x7f, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x0f, 0x01, 0x06, 0x07, 0x0f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 
    0x1f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x07, 0x1f, 0x3f, 0x7f, 0x7f, 0xff, 
    0xff, 0xfc, 0xf8, 0xf8, 0xfc, 0xff, 0xff, 0x7f, 0x7f, 0x7f, 0x7f, 0x78, 0x38, 0x3e, 0x1f, 0x00
    };

    oled_write_raw_P(my_logo, sizeof(my_logo));

    return false;

}
#endif