2021-08-07 21:42:04 -07:00
|
|
|
/* Copyright 2020 Spaceman
|
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
2023-03-28 21:54:34 -07:00
|
|
|
#include "quantum.h"
|
2021-08-07 21:42:04 -07:00
|
|
|
|
|
|
|
|
2021-08-23 23:28:26 -07:00
|
|
|
#ifdef OLED_ENABLE
|
2021-11-01 15:42:50 -07:00
|
|
|
oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
|
2021-08-07 21:42:04 -07:00
|
|
|
return OLED_ROTATION_270;
|
|
|
|
}
|
2021-11-01 15:42:50 -07:00
|
|
|
|
|
|
|
bool oled_task_kb(void) {
|
|
|
|
if (!oled_task_user()) {
|
|
|
|
return false;
|
|
|
|
}
|
2021-08-07 21:42:04 -07:00
|
|
|
static const char PROGMEM pancake_logo[] = {
|
|
|
|
0x00, 0x00, 0x3e, 0x0a, 0x04, 0x00, 0x3c, 0x0a, 0x3c, 0x00, 0x3e, 0x0c, 0x18, 0x3e, 0x00, 0x3e,
|
|
|
|
0x22, 0x22, 0x00, 0x3c, 0x0a, 0x3c, 0x00, 0x3e, 0x08, 0x36, 0x00, 0x3e, 0x2a, 0x22, 0x00, 0x00,
|
|
|
|
0x00, 0x30, 0xc8, 0x84, 0x84, 0x02, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x19, 0x1d,
|
|
|
|
0x1d, 0x0d, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x84, 0x84, 0xc8, 0x30, 0x00,
|
2021-08-23 23:28:26 -07:00
|
|
|
0x00, 0x63, 0x94, 0x08, 0x08, 0x11, 0x71, 0x17, 0x13, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x62,
|
2021-08-07 21:42:04 -07:00
|
|
|
0xe2, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x11, 0x11, 0x11, 0x31, 0x08, 0x08, 0x94, 0x63, 0x00,
|
|
|
|
0x00, 0x00, 0x03, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
|
|
|
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x06, 0x02, 0x02, 0x02, 0x01, 0x01, 0x00, 0x00, 0x00 };
|
|
|
|
oled_write_raw_P(pancake_logo, sizeof(pancake_logo));
|
|
|
|
// Host Keyboard Layer Status
|
|
|
|
oled_set_cursor(0, 4);
|
|
|
|
oled_write_P(PSTR("\nLAYER\n-----\n"), false);
|
|
|
|
|
|
|
|
switch (get_highest_layer(layer_state)) {
|
|
|
|
case 0:
|
|
|
|
oled_write_P(PSTR("DEFLT\n"), false);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
oled_write_P(PSTR("FUNCT\n"), false);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
oled_write_P(PSTR("RAISE\n"), false);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
// Or use the write_ln shortcut over adding '\n' to the end of your string
|
|
|
|
oled_write_ln_P(PSTR("Undefined"), false);
|
|
|
|
break;
|
|
|
|
}
|
2021-11-01 15:42:50 -07:00
|
|
|
return false;
|
2021-08-07 21:42:04 -07:00
|
|
|
}
|
|
|
|
#endif
|