summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/cbbrowne/cbbrowne.c0
-rw-r--r--users/cbbrowne/cbbrowne.h39
-rw-r--r--users/cbbrowne/rules.mk1
-rw-r--r--users/stanrc85/config.h5
-rw-r--r--users/stanrc85/layer_rgb.c26
-rw-r--r--users/stanrc85/rules.mk5
6 files changed, 76 insertions, 0 deletions
diff --git a/users/cbbrowne/cbbrowne.c b/users/cbbrowne/cbbrowne.c
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/users/cbbrowne/cbbrowne.c
diff --git a/users/cbbrowne/cbbrowne.h b/users/cbbrowne/cbbrowne.h
new file mode 100644
index 0000000000..301636c053
--- /dev/null
+++ b/users/cbbrowne/cbbrowne.h
@@ -0,0 +1,39 @@
+#ifndef USERSPACE
+#define USERSPACE
+
+#ifdef BACKLIGHT_ENABLE
+#include "backlight.h"
+#endif
+#include "quantum.h"
+#include "config.h"
+
+#ifndef CONFIG_USER_H
+#define CONFIG_USER_H
+
+#ifndef NO_DEBUG
+#define NO_DEBUG
+#endif
+#ifndef NO_PRINT
+#define NO_PRINT
+#endif
+
+/* cbbrowne user configuration */
+
+#define randadd 53
+#define randmul 181
+#define randmod 167
+
+/* Filler to make layering a bit clearer *
+ * borrowed from basic keymap */
+
+#define _______ KC_TRNS
+#define _____ KC_NO
+
+#define LEADER_TIMEOUT 300
+#ifndef LIGHT_CONFIG_H
+#define BACKLIGHT_BREATHING
+#endif
+
+#endif
+
+#endif
diff --git a/users/cbbrowne/rules.mk b/users/cbbrowne/rules.mk
new file mode 100644
index 0000000000..497638cdb3
--- /dev/null
+++ b/users/cbbrowne/rules.mk
@@ -0,0 +1 @@
+SRC += cbbrowne.c
diff --git a/users/stanrc85/config.h b/users/stanrc85/config.h
index 904a7f524e..14284435be 100644
--- a/users/stanrc85/config.h
+++ b/users/stanrc85/config.h
@@ -2,3 +2,8 @@
#define TAPPING_TERM 200
#define RETRO_TAPPING
+
+#ifdef RGBLIGHT_ENABLE
+ #define RGBLIGHT_LIMIT_VAL 175
+ #define RGBLIGHT_SLEEP
+#endif
diff --git a/users/stanrc85/layer_rgb.c b/users/stanrc85/layer_rgb.c
new file mode 100644
index 0000000000..ac5d181224
--- /dev/null
+++ b/users/stanrc85/layer_rgb.c
@@ -0,0 +1,26 @@
+#include "stanrc85.h"
+
+void matrix_init_user(void) {
+ rgblight_setrgb(0xFF, 0x00, 0x00);
+};
+
+uint32_t layer_state_set_user(uint32_t state) {
+ switch (biton32(state)) {
+ case 0:
+ rgblight_setrgb (0xFF, 0x00, 0x00);
+ break;
+ case 1:
+ rgblight_setrgb (0x00, 0xFF, 0x00);
+ break;
+ case 2:
+ rgblight_setrgb (0x00, 0x00, 0xFF);
+ break;
+ case 3:
+ rgblight_setrgb (0xFF, 0xFF, 0xFF);
+ break;
+ default: // for any other layers, or the default layer
+ rgblight_setrgb (0xFF, 0x00, 0x00);
+ break;
+ }
+ return state;
+}
diff --git a/users/stanrc85/rules.mk b/users/stanrc85/rules.mk
index 19ad624758..c94dca0b7c 100644
--- a/users/stanrc85/rules.mk
+++ b/users/stanrc85/rules.mk
@@ -7,3 +7,8 @@ MOUSEKEY_ENABLE = no
AUDIO_ENABLE = no
CONSOLE_ENABLE = no
NKRO_ENABLE = no
+
+ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
+ # Include my fancy rgb functions source here
+ SRC += layer_rgb.c
+endif