diff options
author | Joel Challis <git@zvecr.com> | 2020-03-04 18:19:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 18:19:39 +0000 |
commit | 0275098bdde4d92de25483399143d41c896a761e (patch) | |
tree | 0b21a8581da46fd18fa2705f3f9264da8864933f /keyboards/1upkeyboards/super16/config.h | |
parent | 0c9171a619b4a7a3f29c076c3da53dc238d08e1f (diff) | |
download | qmk_firmware-0275098bdde4d92de25483399143d41c896a761e.tar.gz qmk_firmware-0275098bdde4d92de25483399143d41c896a761e.zip |
[Keyboard] Switch to RGB Matrix for Super16 (#8305)
Diffstat (limited to 'keyboards/1upkeyboards/super16/config.h')
-rw-r--r-- | keyboards/1upkeyboards/super16/config.h | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/keyboards/1upkeyboards/super16/config.h b/keyboards/1upkeyboards/super16/config.h index a50821637e..ddd0233f92 100644 --- a/keyboards/1upkeyboards/super16/config.h +++ b/keyboards/1upkeyboards/super16/config.h @@ -40,9 +40,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) * -*/ -#define MATRIX_ROW_PINS { D1, D0, F4, F5 } -#define MATRIX_COL_PINS { D4, C6, F6, F7 } + */ +#define MATRIX_ROW_PINS \ + { D1, D0, F4, F5 } +#define MATRIX_COL_PINS \ + { D4, C6, F6, F7 } #define UNUSED_PINS /* COL2ROW, ROW2COL*/ @@ -51,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. */ -#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 +#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 // #define BACKLIGHT_PIN B7 // #define BACKLIGHT_BREATHING @@ -59,15 +61,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define RGB_DI_PIN D3 #ifdef RGB_DI_PIN - #define RGBLED_NUM 16 // Add 12 if attaching the RGB LED ring - #define RGBLIGHT_HUE_STEP 8 - #define RGBLIGHT_SAT_STEP 8 - #define RGBLIGHT_VAL_STEP 8 - #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ - #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ - /*== all animations enable ==*/ - #define RGBLIGHT_ANIMATIONS - /*== or choose animations ==*/ +# define RGBLED_NUM 16 // Add 12 if attaching the RGB LED ring +# define DRIVER_LED_TOTAL RGBLED_NUM +# ifdef RGBLIGHT_ENABLE +# define RGBLIGHT_HUE_STEP 8 +# define RGBLIGHT_SAT_STEP 8 +# define RGBLIGHT_VAL_STEP 8 +# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ +# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ +/*== all animations enable ==*/ +# define RGBLIGHT_ANIMATIONS +/*== or choose animations ==*/ // #define RGBLIGHT_EFFECT_BREATHING // #define RGBLIGHT_EFFECT_RAINBOW_MOOD // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL @@ -77,6 +81,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. // #define RGBLIGHT_EFFECT_STATIC_GRADIENT // #define RGBLIGHT_EFFECT_RGB_TEST // #define RGBLIGHT_EFFECT_ALTERNATING +# elif defined RGB_MATRIX_ENABLE +# define RGB_MATRIX_KEYPRESSES // reacts to keypresses +# define RGB_MATRIX_FRAMEBUFFER_EFFECTS // reacts to keyreleases (instead of keypresses) + +# endif #endif /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |