From be1dcb9185d9ee3c1fa433703cc2e479efd6ba73 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Tue, 11 Jan 2022 14:20:33 +1100 Subject: Fix CI. (#15828) * Fix CI. --- .../marksard/treadstone48/common/oled_helper.h | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 keyboards/marksard/treadstone48/common/oled_helper.h (limited to 'keyboards/marksard/treadstone48/common/oled_helper.h') diff --git a/keyboards/marksard/treadstone48/common/oled_helper.h b/keyboards/marksard/treadstone48/common/oled_helper.h new file mode 100644 index 0000000000..56c2a5b236 --- /dev/null +++ b/keyboards/marksard/treadstone48/common/oled_helper.h @@ -0,0 +1,35 @@ +#ifdef OLED_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 -- cgit v1.2.3