summaryrefslogtreecommitdiff
path: root/keyboards/xd75/keymaps/4sstylz/leds.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xd75/keymaps/4sstylz/leds.h')
-rw-r--r--keyboards/xd75/keymaps/4sstylz/leds.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/keyboards/xd75/keymaps/4sstylz/leds.h b/keyboards/xd75/keymaps/4sstylz/leds.h
new file mode 100644
index 0000000000..a5ad863b0a
--- /dev/null
+++ b/keyboards/xd75/keymaps/4sstylz/leds.h
@@ -0,0 +1,46 @@
+/*
+ * DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ * Version 2, December 2004
+ *
+ * Copyright (C) 2019 4sStylZ <4sstylz@protonmail.ch>
+ *
+ * Everyone is permitted to copy and distribute verbatim or modified
+ * copies of this license document, and changing it is allowed as long
+ * as the name is changed.
+ *
+ * DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+ *
+ * 0. You just DO WHAT THE FUCK YOU WANT TO.
+ */
+#include QMK_KEYBOARD_H
+
+void setDefaultDisplay(void) {
+ _delay_ms(10);
+ rgblight_setrgb_at(180, 35, 0, 0);
+ _delay_ms(10);
+ rgblight_setrgb_at(200, 35, 0, 1);
+ _delay_ms(10);
+ rgblight_setrgb_at(220, 35, 0, 2);
+ _delay_ms(10);
+ rgblight_setrgb_at(220, 35, 0, 3);
+ _delay_ms(10);
+ rgblight_setrgb_at(200, 35, 0, 4);
+ _delay_ms(10);
+ rgblight_setrgb_at(180, 35, 0, 5);
+}
+
+void setFNDisplay(void) {
+ _delay_ms(10);
+ rgblight_setrgb_at(145, 45, 0, 0);
+ _delay_ms(10);
+ rgblight_setrgb_at(160, 45, 0, 1);
+ _delay_ms(10);
+ rgblight_setrgb_at(175, 45, 0, 2);
+ _delay_ms(10);
+ rgblight_setrgb_at(190, 45, 0, 3);
+ _delay_ms(10);
+ rgblight_setrgb_at(205, 45, 0, 4);
+ _delay_ms(10);
+ rgblight_setrgb_at(220, 45, 0, 5);
+}