aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/bastardkb/scylla/config.h22
-rw-r--r--keyboards/bastardkb/scylla/rules.mk4
-rw-r--r--keyboards/bastardkb/scylla/scylla.c45
3 files changed, 68 insertions, 3 deletions
diff --git a/keyboards/bastardkb/scylla/config.h b/keyboards/bastardkb/scylla/config.h
index b00e781df..2a4972ea1 100644
--- a/keyboards/bastardkb/scylla/config.h
+++ b/keyboards/bastardkb/scylla/config.h
@@ -1,4 +1,4 @@
1/* 1/*
2 * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com> 2 * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com>
3 * 3 *
4 * This program is free software: you can redistribute it and/or modify 4 * This program is free software: you can redistribute it and/or modify
@@ -37,3 +37,23 @@
37#define DEBOUNCE 5 37#define DEBOUNCE 5
38#define SOFT_SERIAL_PIN D0 38#define SOFT_SERIAL_PIN D0
39#define MASTER_RIGHT 39#define MASTER_RIGHT
40
41#ifdef RGBLIGHT_ENABLE
42# define RGBLED_NUM 58
43# define RGBLED_SPLIT { 29, 29 }
44# define RGBLIGHT_LIMIT_VAL 50
45# define RGBLIGHT_ANIMATIONS
46#endif
47
48// RGB matrix support
49#ifdef RGB_MATRIX_ENABLE
50# define SPLIT_TRANSPORT_MIRROR
51# define DRIVER_LED_TOTAL 58 // Number of LEDs
52# define RGB_MATRIX_SPLIT { 29, 29 }
53# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
54# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
55# ifndef RGB_DISABLE_WHEN_USB_SUSPENDED
56# define RGB_DISABLE_WHEN_USB_SUSPENDED true
57# endif
58# define RGB_MATRIX_KEYPRESSES
59#endif
diff --git a/keyboards/bastardkb/scylla/rules.mk b/keyboards/bastardkb/scylla/rules.mk
index cc88208e3..70e6f13e0 100644
--- a/keyboards/bastardkb/scylla/rules.mk
+++ b/keyboards/bastardkb/scylla/rules.mk
@@ -17,7 +17,9 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover 18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow 20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21RGB_MATRIX_ENABLE = yes # Enable keyboard RGB matrix (do not use together with RGBLIGHT_ENABLE)
22RGB_MATRIX_DRIVER = WS2812 # RGB matrix driver support
21BLUETOOTH_ENABLE = no # Enable Bluetooth 23BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output 24AUDIO_ENABLE = no # Audio output
23SPLIT_KEYBOARD = yes 25SPLIT_KEYBOARD = yes
diff --git a/keyboards/bastardkb/scylla/scylla.c b/keyboards/bastardkb/scylla/scylla.c
index f9e791708..b110d7ff5 100644
--- a/keyboards/bastardkb/scylla/scylla.c
+++ b/keyboards/bastardkb/scylla/scylla.c
@@ -1,4 +1,4 @@
1/* 1/*
2 * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com> 2 * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com>
3 * 3 *
4 * This program is free software: you can redistribute it and/or modify 4 * This program is free software: you can redistribute it and/or modify
@@ -16,3 +16,46 @@
16 */ 16 */
17 17
18#include "scylla.h" 18#include "scylla.h"
19
20#ifdef RGB_MATRIX_ENABLE
21led_config_t g_led_config = { {
22 // left
23 { 0, 7, 8, 15, 16, 20 },
24 { 1, 6, 9, 14, 17, 21 },
25 { 2, 5, 10, 13, 18, 22 },
26 { 3, 4, 11, 12, 19, 23 },
27 { NO_LED, 28, 24, 26, 27, 25 },
28 // right
29 { 29, 36, 37, 44, 45, 49 },
30 { 30, 35, 38, 43, 46, 50 },
31 { 31, 34, 39, 42, 47, 51 },
32 { 32, 33, 40, 41, 48, 52 },
33 { NO_LED, 57, 53, 55, 56, 54 }
34}, {
35 // left
36 { 0, 0 }, { 0, 16 }, { 0, 32 }, { 0, 48 }, // col 1
37 { 20, 48 }, { 20, 32 }, { 20, 16 }, { 20, 0 }, // col 2
38 { 41, 0 }, { 41, 16 }, { 41, 32 }, { 41, 48 },
39 { 61, 48 }, { 61, 32 }, { 61, 16 }, { 61, 0 },
40 { 81, 0 }, { 81, 16 }, { 81, 32 }, { 81, 48 },
41 { 102, 0 }, { 102, 16 }, { 102, 32 }, { 102, 48 },
42 { 102, 64 }, { 81, 64 }, { 61, 56 }, { 81, 56 }, { 102, 56 }, // left thumb cluster
43 // right
44 { 224, 0 }, { 224, 16 }, { 224, 32 }, { 224, 48 }, // col 12
45 { 204, 48 }, { 204, 32 }, { 204, 16 }, { 204, 0 }, // col 11
46 { 183, 0 }, { 183, 16 }, { 183, 32 }, { 183, 48 },
47 { 163, 48 }, { 163, 32 }, { 163, 16 }, { 163, 0 },
48 { 142, 0 }, { 142, 16 }, { 142, 32 }, { 142, 48 },
49 { 122, 0 }, { 122, 16 }, { 122, 32 }, { 122, 48 },
50 { 122, 64 }, { 142, 64 }, { 163, 56 }, { 142, 56 }, { 122, 56 } // right thumb cluster
51}, {
52 // left
53 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4,
54 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
55 2, 2, 2, 2, 2,
56 // right
57 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4,
58 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
59 2, 2, 2, 2, 2
60} };
61#endif