[Keyboard] Add boardsource/the_q (#23782)

* initial unsplit keyboard

* move shared code

* unsplit: fix underglow led x,y & remove unecessary code

* unsplit: remove split code & tidy readme

* unsplit: limit brightness & community layout

* rename keyboard

* the_q: tidy keymap & readme

* lulu: remove accidental build target

* rename file
This commit is contained in:
jack 2024-07-10 13:19:06 -06:00 committed by GitHub
parent 07fd206370
commit c97ec805cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 314 additions and 283 deletions

View file

@ -1,6 +1,7 @@
// Copyright 2023 jack (@waffle87)
// Copyright 2024 jack (@waffle87)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "unicorne.h"
#include "quantum.h"
#include "lib/oled.h"
#ifdef OLED_ENABLE
oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
@ -15,22 +16,9 @@ bool oled_task_kb(void) {
return false;
}
if (is_keyboard_master()) {
switch (get_highest_layer(layer_state)) {
case 0:
oled_write_raw(layer_zero, sizeof(layer_zero));
break;
case 1:
oled_write_raw(layer_one, sizeof(layer_one));
break;
case 2:
oled_write_raw(layer_two, sizeof(layer_two));
break;
case 3:
oled_write_raw(layer_three, sizeof(layer_three));
break;
}
render_layer_state();
} else {
oled_write_raw(logo, sizeof(logo));
oled_write_raw_P(bs_logo_img, sizeof(bs_logo_img));
}
return false;
}