aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/duck/jetfire/backlight_led.h
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-08-25 18:00:20 -0700
committerDrashna Jaelre <drashna@live.com>2018-08-25 18:00:20 -0700
commite16b39f0c20c73348ae12af0e82e4b4c0d30b393 (patch)
tree74d33ae10f38fb4fbb39ab2eaa298f9ecdd272cf /keyboards/duck/jetfire/backlight_led.h
parenta68057852bbffc45f783523a86a6aa2e80a03d44 (diff)
downloadfirmware-e16b39f0c20c73348ae12af0e82e4b4c0d30b393.tar.gz
firmware-e16b39f0c20c73348ae12af0e82e4b4c0d30b393.tar.bz2
firmware-e16b39f0c20c73348ae12af0e82e4b4c0d30b393.zip
Keyboard: Duck Jetfire QMK Support (#3752)
* Initial Commit Port from xauser's jetfire code. Does not compile yet * fix up keymap from uint8 to uin16 * update rules file to contain custom matrix * Good stopping point Still lots of compile errors but I'm getting there. * fix a few more compile errors * move a few functions around to help with compiling * Finally got it all to compile * Get rid of that old KEYMAP macro * edit readme * Put my name everywhere and some minor code clean ups * start to remove that kc nonsense * fix keymap compilation issues * add reset key info * better human readable formatting * match the duck default layout * add confgurator support * clarify reset key * might be a good idea to use the correct pin * get the riight keycode for RGB * include an ALL layout * I tried to fix the formatting....sigh * add functons to ensure Configurator compile-ability * move jetfire to duck directory * Moved and renamed things as per Drashna's PR comments as his back was hurting as he reviewed this
Diffstat (limited to 'keyboards/duck/jetfire/backlight_led.h')
-rw-r--r--keyboards/duck/jetfire/backlight_led.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/keyboards/duck/jetfire/backlight_led.h b/keyboards/duck/jetfire/backlight_led.h
new file mode 100644
index 000000000..36d8d9aa9
--- /dev/null
+++ b/keyboards/duck/jetfire/backlight_led.h
@@ -0,0 +1,18 @@
+#ifndef BACKLIGHT_LED_H
+#define BACKLIGHT_LED_H
+
+enum Device {
+ Device_PCBRGB,
+ Device_STATELED
+};
+
+void backlight_init_ports(void);
+void backlight_set_state(bool cfg[7]);
+void backlight_update_state(void);
+void backlight_toggle_rgb(bool enabled);
+void backlight_set_rgb(uint8_t cfg[17][3]);
+void backlight_set(uint8_t level);
+void send_color(uint8_t r, uint8_t g, uint8_t b, enum Device device);
+void show(void);
+
+#endif