diff options
author | marksard <38324387+marksard@users.noreply.github.com> | 2020-09-04 20:14:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 04:14:34 -0700 |
commit | 6e32dd123ff0ff49768f43c97bbc10836ff8a629 (patch) | |
tree | 02e1288b9873a41af13707447985d4318372b9d4 /keyboards/marksard/rhymestone/common/oled_helper.h | |
parent | 82a830196f5a71ced413af302ce4dd12ec034782 (diff) | |
download | qmk_firmware-6e32dd123ff0ff49768f43c97bbc10836ff8a629.tar.gz |
[Keyboard] add rhymestone by marksard (#9708)
* 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
* Add keyboard the Rhymestone
* fixed by PR review
* fixed by review
* Update keyboards/rhymestone/readme.md
fixed
* Fixed possible changes to oled_write_P
* Change the name of the layout definition
* Update keyboards/rhymestone/info.json
* Update keyboards/rhymestone/keymaps/default/keymap.c
* Update keyboards/rhymestone/keymaps/default/keymap.c
* Update keyboards/rhymestone/keymaps/default/keymap.c
* Update keyboards/rhymestone/keymaps/default/keymap.c
* Update keyboards/rhymestone/keymaps/switch_tester/keymap.c
* Update keyboards/rhymestone/keymaps/switch_tester/keymap.c
* Update keyboards/rhymestone/rev1/rev1.h
* add empty rules.mk in rev1
* Update from other review
* Update keyboards/rhymestone/rules.mk
* fixed other review
* move rhymestone to marksard directory
* move rhymestone to marksard directory (Commit the necessary modifications)
* remove
Diffstat (limited to 'keyboards/marksard/rhymestone/common/oled_helper.h')
-rw-r--r-- | keyboards/marksard/rhymestone/common/oled_helper.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/marksard/rhymestone/common/oled_helper.h b/keyboards/marksard/rhymestone/common/oled_helper.h new file mode 100644 index 000000000..02f7b94fa --- /dev/null +++ b/keyboards/marksard/rhymestone/common/oled_helper.h @@ -0,0 +1,32 @@ +#ifdef OLED_DRIVER_ENABLE + +void render_logo(void); +void render_lock_status(void); +void update_key_status(uint16_t keycode, keyrecord_t *record); +void render_key_status(void); + +#define RENDER_LOGO() render_logo() +#define RENDER_LOCK_STATUS() render_lock_status() +#define UPDATE_KEY_STATUS(a, b) update_key_status(a, b) +#define RENDER_KEY_STATUS() render_key_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 RENDER_LOCK_STATUS() +#define UPDATE_KEY_STATUS(a, b) +#define RENDER_KEY_STATUS() +#define UPDATE_LED_STATUS() +#define RENDER_LED_STATUS() + +#endif |