aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/config.h3
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h6
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h4
-rw-r--r--layouts/community/ortho_4x12/drashna/keymap.c15
-rw-r--r--users/drashna/drashna.c2
-rw-r--r--users/drashna/drashna.h7
-rw-r--r--users/drashna/transport_sync.c11
7 files changed, 21 insertions, 27 deletions
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/config.h
index 5d75432ae..d1860c337 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/config.h
@@ -50,6 +50,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
50//#define NO_ACTION_ONESHOT 50//#define NO_ACTION_ONESHOT
51#define NO_ACTION_MACRO 51#define NO_ACTION_MACRO
52#define NO_ACTION_FUNCTION 52#define NO_ACTION_FUNCTION
53
54/* PMW3360 Settings */
55#define PMW3360_CS_PIN B0
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
index d3e0598cd..cc4efedb8 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
@@ -91,8 +91,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
91// #define EXTERNAL_EEPROM_BYTE_COUNT 8196 91// #define EXTERNAL_EEPROM_BYTE_COUNT 8196
92// #define EXTERNAL_EEPROM_PAGE_SIZE 32 92// #define EXTERNAL_EEPROM_PAGE_SIZE 32
93// #define EXTERNAL_EEPROM_ADDRESS_SIZE 2 93// #define EXTERNAL_EEPROM_ADDRESS_SIZE 2
94#define DEBUG_EEPROM_OUTPUT 94// #define DEBUG_EEPROM_OUTPUT
95 95
96#define PMW_CS_PIN B0 96#define PMW3360_CS_PIN B0
97#define SPI_MODE 0
98#define SPI_DIVISOR 64
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h
index 44a66750b..239102059 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h
@@ -34,6 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
34#define RGBLIGHT_SPLIT 34#define RGBLIGHT_SPLIT
35#define RGBLED_SPLIT \ 35#define RGBLED_SPLIT \
36 { 10, 10 } 36 { 10, 10 }
37#define RGBLIGHT_LIMIT_VAL 80
37 38
38#define DEBUG_LED_PIN D6 39#define DEBUG_LED_PIN D6
39 40
@@ -48,3 +49,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
48 { D5 } 49 { D5 }
49#define ENCODERS_PAD_B \ 50#define ENCODERS_PAD_B \
50 { D4 } 51 { D4 }
52
53/* PMW3360 Settings */
54#define PMW3360_CS_PIN B0
diff --git a/layouts/community/ortho_4x12/drashna/keymap.c b/layouts/community/ortho_4x12/drashna/keymap.c
index 9ef2317f4..cb3166c94 100644
--- a/layouts/community/ortho_4x12/drashna/keymap.c
+++ b/layouts/community/ortho_4x12/drashna/keymap.c
@@ -215,11 +215,12 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
215 uint8_t this_mod = get_mods(); 215 uint8_t this_mod = get_mods();
216 uint8_t this_led = host_keyboard_leds(); 216 uint8_t this_led = host_keyboard_leds();
217 uint8_t this_osm = get_oneshot_mods(); 217 uint8_t this_osm = get_oneshot_mods();
218 bool is_ez;
219# ifdef KEYBOARD_planck_ez 218# ifdef KEYBOARD_planck_ez
220 is_ez = true; 219# define THUMB_LED 41
220# else
221# define THUMB_LED 42
221# endif 222# endif
222 223# define RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(...) RGB_MATRIX_INDICATOR_SET_COLOR(__VA_ARGS__)
223# if defined(RGBLIGHT_ENABLE) 224# if defined(RGBLIGHT_ENABLE)
224 if (!userspace_config.rgb_layer_change) 225 if (!userspace_config.rgb_layer_change)
225# else 226# else
@@ -265,16 +266,16 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
265 266
266 switch (get_highest_layer(default_layer_state)) { 267 switch (get_highest_layer(default_layer_state)) {
267 case _DEFAULT_LAYER_1: 268 case _DEFAULT_LAYER_1:
268 RGB_MATRIX_INDICATOR_SET_COLOR((is_ez ? 41 : 42), 0x00, 0xFF, 0xFF); 269 RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(THUMB_LED, DEFAULT_LAYER_1_RGB);
269 break; 270 break;
270 case _DEFAULT_LAYER_2: 271 case _DEFAULT_LAYER_2:
271 RGB_MATRIX_INDICATOR_SET_COLOR((is_ez ? 41 : 42), 0xFF, 0x00, 0xFF); 272 RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(THUMB_LED, DEFAULT_LAYER_2_RGB);
272 break; 273 break;
273 case _DEFAULT_LAYER_3: 274 case _DEFAULT_LAYER_3:
274 RGB_MATRIX_INDICATOR_SET_COLOR((is_ez ? 41 : 42), 0x00, 0xFF, 0x00); 275 RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(THUMB_LED, DEFAULT_LAYER_3_RGB);
275 break; 276 break;
276 case _DEFAULT_LAYER_4: 277 case _DEFAULT_LAYER_4:
277 RGB_MATRIX_INDICATOR_SET_COLOR((is_ez ? 41 : 42), 0xD9, 0xA5, 0x21); 278 RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(THUMB_LED, DEFAULT_LAYER_4_RGB);
278 break; 279 break;
279 } 280 }
280 281
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c
index 13421f39d..3423e379a 100644
--- a/users/drashna/drashna.c
+++ b/users/drashna/drashna.c
@@ -172,7 +172,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
172 return state; 172 return state;
173 } 173 }
174 174
175 state = layer_state_set_keymap(state);
176 state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST); 175 state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST);
177#if defined(RGBLIGHT_ENABLE) 176#if defined(RGBLIGHT_ENABLE)
178 state = layer_state_set_rgb_light(state); 177 state = layer_state_set_rgb_light(state);
@@ -188,6 +187,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
188 } 187 }
189 } 188 }
190#endif 189#endif
190 state = layer_state_set_keymap(state);
191 return state; 191 return state;
192} 192}
193 193
diff --git a/users/drashna/drashna.h b/users/drashna/drashna.h
index a1fa3ffa9..af26fdc43 100644
--- a/users/drashna/drashna.h
+++ b/users/drashna/drashna.h
@@ -76,10 +76,15 @@ enum userspace_layers {
76#endif 76#endif
77 77
78#define DEFAULT_LAYER_1_HSV HSV_CYAN 78#define DEFAULT_LAYER_1_HSV HSV_CYAN
79#define DEFAULT_LAYER_2_HSV HSV_SPRINGGREEN 79#define DEFAULT_LAYER_2_HSV HSV_CHARTREUSE
80#define DEFAULT_LAYER_3_HSV HSV_MAGENTA 80#define DEFAULT_LAYER_3_HSV HSV_MAGENTA
81#define DEFAULT_LAYER_4_HSV HSV_GOLDENROD 81#define DEFAULT_LAYER_4_HSV HSV_GOLDENROD
82 82
83#define DEFAULT_LAYER_1_RGB RGB_CYAN
84#define DEFAULT_LAYER_2_RGB RGB_CHARTREUSE
85#define DEFAULT_LAYER_3_RGB RGB_MAGENTA
86#define DEFAULT_LAYER_4_RGB RGB_GOLDENROD
87
83bool mod_key_press_timer(uint16_t code, uint16_t mod_code, bool pressed); 88bool mod_key_press_timer(uint16_t code, uint16_t mod_code, bool pressed);
84bool mod_key_press(uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer); 89bool mod_key_press(uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer);
85void matrix_init_keymap(void); 90void matrix_init_keymap(void);
diff --git a/users/drashna/transport_sync.c b/users/drashna/transport_sync.c
index 38434751e..fdd596c04 100644
--- a/users/drashna/transport_sync.c
+++ b/users/drashna/transport_sync.c
@@ -71,10 +71,6 @@ void keyboard_post_init_transport_sync(void) {
71 71
72void user_transport_update(void) { 72void user_transport_update(void) {
73 if (is_keyboard_master()) { 73 if (is_keyboard_master()) {
74# ifdef OLED_ENABLE
75 user_state.oled_on = is_oled_on();
76# endif
77
78 transport_keymap_config = keymap_config.raw; 74 transport_keymap_config = keymap_config.raw;
79 transport_userspace_config = userspace_config.raw; 75 transport_userspace_config = userspace_config.raw;
80#ifdef AUDIO_ENABLE 76#ifdef AUDIO_ENABLE
@@ -89,13 +85,6 @@ void user_transport_update(void) {
89#endif 85#endif
90 86
91 } else { 87 } else {
92# ifdef OLED_ENABLE
93 if (user_state.oled_on) {
94 oled_on();
95 } else {
96 oled_off();
97 }
98# endif
99 keymap_config.raw = transport_keymap_config; 88 keymap_config.raw = transport_keymap_config;
100 userspace_config.raw = transport_userspace_config; 89 userspace_config.raw = transport_userspace_config;
101#ifdef UNICODE_ENABLE 90#ifdef UNICODE_ENABLE