keychron_qmk_firmware/keyboards/boardsource/lib/oled.c
jack c97ec805cd
[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
2024-07-10 13:19:06 -06:00

21 lines
573 B
C

// Copyright 2024 jack (@waffle87)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "oled.h"
void render_layer_state(void) {
switch (get_highest_layer(layer_state)) {
case 0:
oled_write_raw_P(layer0_img, sizeof(layer0_img));
break;
case 1:
oled_write_raw_P(layer1_img, sizeof(layer1_img));
break;
case 2:
oled_write_raw_P(layer2_img, sizeof(layer2_img));
break;
case 3:
oled_write_raw_P(layer3_img, sizeof(layer3_img));
break;
}
}