mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-28 03:26:51 +06:00
c97ec805cd
* 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
21 lines
573 B
C
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;
|
|
}
|
|
}
|