aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/clueboard/rev1/config.h5
-rw-r--r--keyboards/clueboard/rev2/config.h5
-rw-r--r--keyboards/cluepad/config.h13
-rw-r--r--keyboards/kc60/keymaps/ws2812/config.h5
-rw-r--r--keyboards/lets_split/config.h5
-rw-r--r--keyboards/phantom/config.h13
-rw-r--r--keyboards/planck/keymaps/experimental/Makefile6
-rw-r--r--keyboards/planck/keymaps/experimental/config.h8
-rw-r--r--keyboards/planck/keymaps/experimental/keymap.c73
-rw-r--r--keyboards/planck/keymaps/pvc/config.h5
-rw-r--r--keyboards/planck/keymaps/yang/config.h5
-rw-r--r--keyboards/preonic/config.h5
-rw-r--r--keyboards/satan/config.h14
13 files changed, 113 insertions, 49 deletions
diff --git a/keyboards/clueboard/rev1/config.h b/keyboards/clueboard/rev1/config.h
index 9bb58f56e..8c9497232 100644
--- a/keyboards/clueboard/rev1/config.h
+++ b/keyboards/clueboard/rev1/config.h
@@ -25,9 +25,8 @@
25 25
26/* Underlight configuration 26/* Underlight configuration
27 */ 27 */
28#define ws2812_PORTREG PORTB 28#define RGB_DI_PIN B2
29#define ws2812_DDRREG DDRB 29#define RGBLIGHT_TIMER
30#define ws2812_pin 2
31#define RGBLED_NUM 14 // Number of LEDs 30#define RGBLED_NUM 14 // Number of LEDs
32#define RGBLIGHT_HUE_STEP 10 31#define RGBLIGHT_HUE_STEP 10
33#define RGBLIGHT_SAT_STEP 17 32#define RGBLIGHT_SAT_STEP 17
diff --git a/keyboards/clueboard/rev2/config.h b/keyboards/clueboard/rev2/config.h
index e2f8336be..02982ff29 100644
--- a/keyboards/clueboard/rev2/config.h
+++ b/keyboards/clueboard/rev2/config.h
@@ -29,9 +29,8 @@
29 29
30/* Underlight configuration 30/* Underlight configuration
31 */ 31 */
32#define ws2812_PORTREG PORTD 32#define RGB_DI_PIN D7
33#define ws2812_DDRREG DDRD 33#define RGBLIGHT_TIMER
34#define ws2812_pin 7
35#define RGBLED_NUM 14 // Number of LEDs 34#define RGBLED_NUM 14 // Number of LEDs
36#define RGBLIGHT_HUE_STEP 10 35#define RGBLIGHT_HUE_STEP 10
37#define RGBLIGHT_SAT_STEP 17 36#define RGBLIGHT_SAT_STEP 17
diff --git a/keyboards/cluepad/config.h b/keyboards/cluepad/config.h
index 0955e0f70..bae05fade 100644
--- a/keyboards/cluepad/config.h
+++ b/keyboards/cluepad/config.h
@@ -69,13 +69,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
69 69
70/* Underlight configuration 70/* Underlight configuration
71 */ 71 */
72 #define ws2812_PORTREG PORTF 72#define RGB_DI_PIN F6
73 #define ws2812_DDRREG DDRF 73#define RGBLIGHT_TIMER
74 #define ws2812_pin 6 74#define RGBLED_NUM 4 // Number of LEDs
75 #define RGBLED_NUM 4 // Number of LEDs 75#define RGBLIGHT_HUE_STEP 10
76 #define RGBLIGHT_HUE_STEP 10 76#define RGBLIGHT_SAT_STEP 17
77 #define RGBLIGHT_SAT_STEP 17 77#define RGBLIGHT_VAL_STEP 17
78 #define RGBLIGHT_VAL_STEP 17
79 78
80/* 79/*
81 * Feature disable options 80 * Feature disable options
diff --git a/keyboards/kc60/keymaps/ws2812/config.h b/keyboards/kc60/keymaps/ws2812/config.h
index 933bb0d2d..2f39ea8e5 100644
--- a/keyboards/kc60/keymaps/ws2812/config.h
+++ b/keyboards/kc60/keymaps/ws2812/config.h
@@ -1,9 +1,8 @@
1#include "../../config.h" 1#include "../../config.h"
2 2
3/* WS2812B RGB Underglow LED */ 3/* WS2812B RGB Underglow LED */
4#define ws2812_PORTREG PORTF 4#define RGB_DI_PIN F5 // Based on wiring depicted in ws2812_wiring.jpg
5#define ws2812_DDRREG DDRF 5#define RGBLIGHT_TIMER
6#define ws2812_pin PF5 // Based on wiring depicted in ws2812_wiring.jpg
7#define RGBLED_NUM 16 // Number of LEDs. Change this to match your use case. 6#define RGBLED_NUM 16 // Number of LEDs. Change this to match your use case.
8#define RGBLIGHT_HUE_STEP 8 7#define RGBLIGHT_HUE_STEP 8
9#define RGBLIGHT_SAT_STEP 8 8#define RGBLIGHT_SAT_STEP 8
diff --git a/keyboards/lets_split/config.h b/keyboards/lets_split/config.h
index 6f90997ab..833818ce6 100644
--- a/keyboards/lets_split/config.h
+++ b/keyboards/lets_split/config.h
@@ -69,9 +69,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
69) 69)
70 70
71/* ws2812 RGB LED */ 71/* ws2812 RGB LED */
72#define ws2812_PORTREG PORTD 72#define RGB_DI_PIN D2
73#define ws2812_DDRREG DDRD 73#define RGBLIGHT_TIMER
74#define ws2812_pin PD1
75#define RGBLED_NUM 28 // Number of LEDs 74#define RGBLED_NUM 28 // Number of LEDs
76#define RGBLIGHT_HUE_STEP 10 75#define RGBLIGHT_HUE_STEP 10
77#define RGBLIGHT_SAT_STEP 17 76#define RGBLIGHT_SAT_STEP 17
diff --git a/keyboards/phantom/config.h b/keyboards/phantom/config.h
index d5878766f..983a1d73f 100644
--- a/keyboards/phantom/config.h
+++ b/keyboards/phantom/config.h
@@ -62,13 +62,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
62 62
63/* Underlight configuration 63/* Underlight configuration
64 */ 64 */
65 #define ws2812_PORTREG PORTE 65#define RGB_DI_PIN E2
66 #define ws2812_DDRREG DDRE 66#define RGBLIGHT_TIMER
67 #define ws2812_pin 2 67#define RGBLED_NUM 20 // Number of LEDs
68 #define RGBLED_NUM 20 // Number of LEDs 68#define RGBLIGHT_HUE_STEP 10
69 #define RGBLIGHT_HUE_STEP 10 69#define RGBLIGHT_SAT_STEP 17
70 #define RGBLIGHT_SAT_STEP 17 70#define RGBLIGHT_VAL_STEP 17
71 #define RGBLIGHT_VAL_STEP 17
72 71
73/* 72/*
74 * Feature disable options 73 * Feature disable options
diff --git a/keyboards/planck/keymaps/experimental/Makefile b/keyboards/planck/keymaps/experimental/Makefile
index 581e08cd0..877c4aed0 100644
--- a/keyboards/planck/keymaps/experimental/Makefile
+++ b/keyboards/planck/keymaps/experimental/Makefile
@@ -10,12 +10,12 @@ EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
10CONSOLE_ENABLE = no # Console for debug(+400) 10CONSOLE_ENABLE = no # Console for debug(+400)
11COMMAND_ENABLE = yes # Commands for debug and configuration 11COMMAND_ENABLE = yes # Commands for debug and configuration
12NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 12NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
13BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality 13BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
14MIDI_ENABLE = no # MIDI controls 14MIDI_ENABLE = no # MIDI controls
15AUDIO_ENABLE = yes # Audio output on port C6 15AUDIO_ENABLE = no # Audio output on port C6
16UNICODE_ENABLE = no # Unicode 16UNICODE_ENABLE = no # Unicode
17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
18RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 18RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
19 19
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/planck/keymaps/experimental/config.h b/keyboards/planck/keymaps/experimental/config.h
index 985e250ab..52acd1905 100644
--- a/keyboards/planck/keymaps/experimental/config.h
+++ b/keyboards/planck/keymaps/experimental/config.h
@@ -6,4 +6,12 @@
6#define LEADER_TIMEOUT 300 6#define LEADER_TIMEOUT 300
7#define BACKLIGHT_BREATHING 7#define BACKLIGHT_BREATHING
8 8
9
10/* ws2812 RGB LED */
11#define RGB_DI_PIN B1
12#define RGBLIGHT_TIMER
13#define RGBLED_NUM 8 // Number of LEDs
14#define RGBLIGHT_HUE_STEP 10
15#define RGBLIGHT_SAT_STEP 17
16
9#endif 17#endif
diff --git a/keyboards/planck/keymaps/experimental/keymap.c b/keyboards/planck/keymaps/experimental/keymap.c
index 8ec335d7d..d9303fcae 100644
--- a/keyboards/planck/keymaps/experimental/keymap.c
+++ b/keyboards/planck/keymaps/experimental/keymap.c
@@ -15,7 +15,7 @@ extern keymap_config_t keymap_config;
15// The underscores don't mean anything - you can have a layer called STUFF or any other name. 15// The underscores don't mean anything - you can have a layer called STUFF or any other name.
16// Layer names don't all need to be of the same length, obviously, and you can also skip them 16// Layer names don't all need to be of the same length, obviously, and you can also skip them
17// entirely and just use numbers. 17// entirely and just use numbers.
18#define _QWERTY 0 18#define _QWERTY 10
19#define _COLEMAK 1 19#define _COLEMAK 1
20#define _DVORAK 2 20#define _DVORAK 2
21#define _LOWER 3 21#define _LOWER 3
@@ -31,7 +31,15 @@ enum planck_keycodes {
31 LOWER, 31 LOWER,
32 RAISE, 32 RAISE,
33 BACKLIT, 33 BACKLIT,
34 EXT_PLV 34 EXT_PLV,
35 RGBLED_TOGGLE,
36 RGBLED_STEP_MODE,
37 RGBLED_INCREASE_HUE,
38 RGBLED_DECREASE_HUE,
39 RGBLED_INCREASE_SAT,
40 RGBLED_DECREASE_SAT,
41 RGBLED_INCREASE_VAL,
42 RGBLED_DECREASE_VAL,
35}; 43};
36 44
37// Fillers to make layering more clear 45// Fillers to make layering more clear
@@ -39,14 +47,20 @@ enum planck_keycodes {
39#define XXXXXXX KC_NO 47#define XXXXXXX KC_NO
40 48
41const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 49const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50[0] = {
51 {KC_NO, KC_NO, KC_NO, KC_NO, RGBLED_TOGGLE, RGBLED_STEP_MODE, RGBLED_INCREASE_HUE, RGBLED_DECREASE_HUE, RGBLED_INCREASE_SAT, RGBLED_DECREASE_SAT, RGBLED_INCREASE_VAL, RGBLED_DECREASE_VAL},
52 {KC_NO, KC_NO, KC_NO, KC_NO, RGBLED_TOGGLE, RGBLED_STEP_MODE, RGBLED_INCREASE_HUE, RGBLED_DECREASE_HUE, RGBLED_INCREASE_SAT, RGBLED_DECREASE_SAT, RGBLED_INCREASE_VAL, RGBLED_DECREASE_VAL},
53 {KC_NO, KC_NO, KC_NO, KC_NO, RGBLED_TOGGLE, RGBLED_STEP_MODE, RGBLED_INCREASE_HUE, RGBLED_DECREASE_HUE, RGBLED_INCREASE_SAT, RGBLED_DECREASE_SAT, RGBLED_INCREASE_VAL, RGBLED_DECREASE_VAL},
54 {KC_NO, KC_NO, KC_NO, KC_NO, RGBLED_TOGGLE, RGBLED_STEP_MODE, RGBLED_INCREASE_HUE, RGBLED_DECREASE_HUE, RGBLED_INCREASE_SAT, RGBLED_DECREASE_SAT, RGBLED_INCREASE_VAL, RGBLED_DECREASE_VAL}
55},
42 56
43/* Qwerty 57/* Qwerty
44 * ,-----------------------------------------------------------------------------------. 58 ,-----------------------------------------------------------------------------------.
45 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | 59 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
46 * |------+------+------+------+------+-------------+------+------+------+------+------| 60 * |------+------+------+------+------+-------------+------+------+------+------+------|
47 * | Esc | A | S | D | F | G | H | J | K | L | ; | " | 61 * | Esc | A | S | D | F | G | H | J | K | L | ; | " |
48 * |------+------+------+------+------+------|------+------+------+------+------+------| 62 * |------+------+------+------+------+------|------+------+------+------+------+------|
49 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | 63 * | Shift| Z | X | C | V | B | N | M |, | . | / |Enter |
50 * |------+------+------+------+------+------+------+------+------+------+------+------| 64 * |------+------+------+------+------+------+------+------+------+------+------+------|
51 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | 65 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
52 * `-----------------------------------------------------------------------------------' 66 * `-----------------------------------------------------------------------------------'
@@ -292,6 +306,57 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
292 break; 306 break;
293 return false; 307 return false;
294 308
309 case RGBLED_TOGGLE:
310 //led operations
311 if (record->event.pressed) {
312 rgblight_toggle();
313 }
314 return false;
315 break;
316 case RGBLED_INCREASE_HUE:
317 if (record->event.pressed) {
318 rgblight_increase_hue();
319 }
320 return false;
321 break;
322 case RGBLED_DECREASE_HUE:
323 if (record->event.pressed) {
324 rgblight_decrease_hue();
325 }
326 return false;
327 break;
328 case RGBLED_INCREASE_SAT:
329 if (record->event.pressed) {
330 rgblight_increase_sat();
331 }
332 return false;
333 break;
334 case RGBLED_DECREASE_SAT:
335 if (record->event.pressed) {
336 rgblight_decrease_sat();
337 }
338 return false;
339 break;
340 case RGBLED_INCREASE_VAL:
341 if (record->event.pressed) {
342 rgblight_increase_val();
343 }
344 return false;
345 break;
346 case RGBLED_DECREASE_VAL:
347 if (record->event.pressed) {
348 rgblight_decrease_val();
349 }
350 return false;
351 break;
352 case RGBLED_STEP_MODE:
353 if (record->event.pressed) {
354 rgblight_step();
355 }
356 return false;
357 break;
358
359
295 } 360 }
296 return true; 361 return true;
297}; 362};
diff --git a/keyboards/planck/keymaps/pvc/config.h b/keyboards/planck/keymaps/pvc/config.h
index b64893108..c857a3e89 100644
--- a/keyboards/planck/keymaps/pvc/config.h
+++ b/keyboards/planck/keymaps/pvc/config.h
@@ -60,9 +60,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
60) 60)
61 61
62/* ws2812 RGB LED */ 62/* ws2812 RGB LED */
63#define ws2812_PORTREG PORTD 63#define RGB_DI_PIN D1
64#define ws2812_DDRREG DDRD 64#define RGBLIGHT_TIMER
65#define ws2812_pin PD1
66#define RGBLED_NUM 28 // Number of LEDs 65#define RGBLED_NUM 28 // Number of LEDs
67#define RGBLIGHT_HUE_STEP 10 66#define RGBLIGHT_HUE_STEP 10
68#define RGBLIGHT_SAT_STEP 17 67#define RGBLIGHT_SAT_STEP 17
diff --git a/keyboards/planck/keymaps/yang/config.h b/keyboards/planck/keymaps/yang/config.h
index 5921e9377..feb5a1190 100644
--- a/keyboards/planck/keymaps/yang/config.h
+++ b/keyboards/planck/keymaps/yang/config.h
@@ -4,9 +4,8 @@
4#include "../../config.h" 4#include "../../config.h"
5 5
6/* ws2812 RGB LED */ 6/* ws2812 RGB LED */
7#define ws2812_PORTREG PORTD 7#define RGB_DI_PIN D1
8#define ws2812_DDRREG DDRD 8#define RGBLIGHT_TIMER
9#define ws2812_pin PD1
10#define RGBLED_NUM 28 // Number of LEDs 9#define RGBLED_NUM 28 // Number of LEDs
11#define RGBLIGHT_HUE_STEP 10 10#define RGBLIGHT_HUE_STEP 10
12#define RGBLIGHT_SAT_STEP 17 11#define RGBLIGHT_SAT_STEP 17
diff --git a/keyboards/preonic/config.h b/keyboards/preonic/config.h
index 04946f7fb..3fb978c2f 100644
--- a/keyboards/preonic/config.h
+++ b/keyboards/preonic/config.h
@@ -62,9 +62,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
62) 62)
63 63
64/* ws2812 RGB LED */ 64/* ws2812 RGB LED */
65#define ws2812_PORTREG PORTD 65#define RGB_DI_PIN D1
66#define ws2812_DDRREG DDRD 66#define RGBLIGHT_TIMER
67#define ws2812_pin PD1
68#define RGBLED_NUM 28 // Number of LEDs 67#define RGBLED_NUM 28 // Number of LEDs
69#define RGBLIGHT_HUE_STEP 10 68#define RGBLIGHT_HUE_STEP 10
70#define RGBLIGHT_SAT_STEP 17 69#define RGBLIGHT_SAT_STEP 17
diff --git a/keyboards/satan/config.h b/keyboards/satan/config.h
index a7ea8f904..7e9f91cc8 100644
--- a/keyboards/satan/config.h
+++ b/keyboards/satan/config.h
@@ -65,13 +65,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
65 65
66/* Underlight configuration 66/* Underlight configuration
67 */ 67 */
68 #define ws2812_PORTREG PORTE 68
69 #define ws2812_DDRREG DDRE 69#define RGB_DI_PIN E2
70 #define ws2812_pin 2 70#define RGBLIGHT_TIMER
71 #define RGBLED_NUM 8 // Number of LEDs 71#define RGBLED_NUM 8 // Number of LEDs
72 #define RGBLIGHT_HUE_STEP 10 72#define RGBLIGHT_HUE_STEP 10
73 #define RGBLIGHT_SAT_STEP 17 73#define RGBLIGHT_SAT_STEP 17
74 #define RGBLIGHT_VAL_STEP 17 74#define RGBLIGHT_VAL_STEP 17
75 75
76/* 76/*
77 * Feature disable options 77 * Feature disable options