summaryrefslogtreecommitdiff
path: root/keyboards/treadstone48/common/oled_helper.h
diff options
context:
space:
mode:
authormarksard <38324387+marksard@users.noreply.github.com>2019-04-04 14:56:22 +0900
committerDrashna Jaelre <drashna@live.com>2019-04-03 22:56:22 -0700
commitdebd902a3d5788beab8580a26c84d7db2365a638 (patch)
tree5d45358a2655fbbd2d5ecd5941a5fad61de5fd51 /keyboards/treadstone48/common/oled_helper.h
parent4f4fad83737546db6dd04af9e26320ef7d0610dd (diff)
downloadqmk_firmware-debd902a3d5788beab8580a26c84d7db2365a638.tar.gz
qmk_firmware-debd902a3d5788beab8580a26c84d7db2365a638.zip
[Keyboard] add treeadstone48 (#5405)
* 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
Diffstat (limited to 'keyboards/treadstone48/common/oled_helper.h')
-rw-r--r--keyboards/treadstone48/common/oled_helper.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/keyboards/treadstone48/common/oled_helper.h b/keyboards/treadstone48/common/oled_helper.h
new file mode 100644
index 0000000000..44628a5261
--- /dev/null
+++ b/keyboards/treadstone48/common/oled_helper.h
@@ -0,0 +1,35 @@
+#ifdef SSD1306OLED
+
+void render_logo(struct CharacterMatrix *matrix);
+void update_key_status(uint16_t keycode, keyrecord_t *record);
+void render_key_status(struct CharacterMatrix *matrix);
+void update_lock_status(void);
+void render_lock_status(struct CharacterMatrix *matrix);
+
+#define RENDER_LOGO(a) render_logo(a)
+#define UPDATE_KEY_STATUS(a, b) update_key_status(a, b)
+#define RENDER_KEY_STATUS(a) render_key_status(a)
+#define UPDATE_LOCK_STATUS() update_lock_status()
+#define RENDER_LOCK_STATUS(a) render_lock_status(a)
+
+#ifdef RGBLIGHT_ENABLE
+ void update_led_status(void);
+ void render_led_status(struct CharacterMatrix *matrix);
+ #define UPDATE_LED_STATUS() update_led_status()
+ #define RENDER_LED_STATUS(a) render_led_status(a)
+#else
+ #define UPDATE_LED_STATUS()
+ #define RENDER_LED_STATUS(a)
+#endif
+
+#else
+
+#define RENDER_LOGO(a)
+#define UPDATE_KEY_STATUS(a, b)
+#define RENDER_KEY_STATUS(a)
+#define UPDATE_LOCK_STATUS()
+#define RENDER_LOCK_STATUS(a)
+#define UPDATE_LED_STATUS()
+#define RENDER_LED_STATUS(a)
+
+#endif