Migrate rgblight.pin
and RGB_DI_PIN
to ws2812.pin
(#20303)
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
#define SPLIT_TRANSACTION_IDS_KB TOUCH_ENCODER_SYNC, RGB_MENU_SYNC
|
||||
|
||||
/* RGB LED Configuration */
|
||||
#define RGB_DI_PIN B5
|
||||
#define RGBLED_NUM 98
|
||||
#define RGBLED_SPLIT { 49, 49 }
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
|
@@ -9,6 +9,7 @@
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B5",
|
||||
"driver": "pwm"
|
||||
},
|
||||
"matrix_pins": {
|
||||
|
@@ -27,7 +27,6 @@ LED_TYPE rgb_matrix_ws2812_array[RGB_MATRIX_LED_COUNT];
|
||||
static void init(void) {}
|
||||
|
||||
static void flush(void) {
|
||||
// Assumes use of RGB_DI_PIN
|
||||
ws2812_setleds(rgb_matrix_ws2812_array, RGB_MATRIX_LED_COUNT);
|
||||
}
|
||||
|
||||
|
@@ -1,19 +0,0 @@
|
||||
/*Copyright 2020 RGBKB
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define RGB_DI_PIN B3
|
@@ -11,5 +11,8 @@
|
||||
{"pin_a": "B0", "pin_b": "B1"},
|
||||
{"pin_a": "D0", "pin_b": "B2"}
|
||||
]
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B3"
|
||||
}
|
||||
}
|
||||
|
@@ -1,19 +0,0 @@
|
||||
/*Copyright 2020 RGBKB
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define RGB_DI_PIN A3
|
@@ -12,5 +12,8 @@
|
||||
{"pin_a": "B14", "pin_b": "B15"},
|
||||
{"pin_a": "B11", "pin_b": "B12"}
|
||||
]
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "A3"
|
||||
}
|
||||
}
|
||||
|
@@ -18,9 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
/* ws2812 RGB LED */
|
||||
#define RGB_DI_PIN B3
|
||||
|
||||
#ifdef LED_MIRRORED
|
||||
#define RGBLED_NUM 35
|
||||
#else
|
||||
|
@@ -21,6 +21,9 @@
|
||||
"split": {
|
||||
"soft_serial_pin": "D3"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B3"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "qmk-dfu",
|
||||
"layouts": {
|
||||
|
@@ -18,9 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
/* ws2812 RGB LED */
|
||||
#define RGB_DI_PIN B7
|
||||
|
||||
// Underglow / DIY Tent Glow are parallel to the top row leds, no separate define
|
||||
// Full Hand case adds 24 LEDs, Star Fighter case adds 38 LEDs
|
||||
// For mirrored LED control (each MCU controls half the LEDs), total LED counts are divided in half
|
||||
|
@@ -16,6 +16,9 @@
|
||||
"split": {
|
||||
"soft_serial_pin": "D3"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B7"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "qmk-dfu",
|
||||
"layouts": {
|
||||
|
@@ -53,7 +53,6 @@
|
||||
#define DIP_SWITCH_PINS_RIGHT { A14, B0 }
|
||||
|
||||
/* RGB LED Configuration */
|
||||
#define RGB_DI_PIN B5
|
||||
#define RGBLED_NUM 156
|
||||
#define RGBLED_SPLIT { 78, 78 }
|
||||
#define RGBLIGHT_LIMIT_VAL 255
|
||||
|
@@ -9,6 +9,7 @@
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B5",
|
||||
"driver": "pwm"
|
||||
},
|
||||
"matrix_pins": {
|
||||
|
@@ -22,9 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* ws2812 RGB LED */
|
||||
#define RGB_DI_PIN D1
|
||||
|
||||
#define RGBLED_NUM 16 // Number of LEDs
|
||||
|
||||
/*
|
||||
|
@@ -16,6 +16,9 @@
|
||||
"split": {
|
||||
"soft_serial_pin": "D0"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "D1"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"layouts": {
|
||||
|
@@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#define RGB_DI_PIN B6
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@@ -21,6 +21,9 @@
|
||||
"split": {
|
||||
"soft_serial_pin": "D3"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B6"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"layouts": {
|
||||
|
@@ -21,8 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* Select hand configuration */
|
||||
#define EE_HANDS
|
||||
|
||||
/* ws2812 RGB LED */
|
||||
#define RGB_DI_PIN B7
|
||||
#ifndef RGBLIGHT_SPLIT_ENABLE
|
||||
#define RGBLED_NUM 30
|
||||
#else
|
||||
|
@@ -21,6 +21,9 @@
|
||||
"split": {
|
||||
"soft_serial_pin": "D3"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B7"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "qmk-dfu",
|
||||
"community_layouts": ["ortho_4x12", "ortho_5x12"],
|
||||
|
Reference in New Issue
Block a user