mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-28 12:09:16 +06:00
240e1ef6fd
* Keyboard: add treeadstone48 * rename layout defines * Use of pragma once * move common include code * fixed info.json * change keymap layout from kc to normal * fix alpha revision keymap * fixed info.json * remove USE_Link_Time_Optimization * I re-created treastone48 keyboard firmware from ./util/new_keyboard.sh After that I use common OLED_DRIVER, RGB_LIGHT and SPLIT_KEYBOARD options. And then check all keymap. * Modified by PR review
36 lines
920 B
C
36 lines
920 B
C
#ifdef OLED_DRIVER_ENABLE
|
|
|
|
void render_logo(void);
|
|
void update_key_status(uint16_t keycode, keyrecord_t *record);
|
|
void render_key_status(void);
|
|
void update_lock_status(void);
|
|
void render_lock_status(void);
|
|
|
|
#define RENDER_LOGO() render_logo()
|
|
#define UPDATE_KEY_STATUS(a, b) update_key_status(a, b)
|
|
#define RENDER_KEY_STATUS() render_key_status()
|
|
#define UPDATE_LOCK_STATUS() update_lock_status()
|
|
#define RENDER_LOCK_STATUS() render_lock_status()
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
void update_led_status(void);
|
|
void render_led_status(void);
|
|
#define UPDATE_LED_STATUS() update_led_status()
|
|
#define RENDER_LED_STATUS() render_led_status()
|
|
#else
|
|
#define UPDATE_LED_STATUS()
|
|
#define RENDER_LED_STATUS()
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define RENDER_LOGO()
|
|
#define UPDATE_KEY_STATUS(a, b)
|
|
#define RENDER_KEY_STATUS()
|
|
#define UPDATE_LOCK_STATUS()
|
|
#define RENDER_LOCK_STATUS()
|
|
#define UPDATE_LED_STATUS()
|
|
#define RENDER_LED_STATUS()
|
|
|
|
#endif
|