Move backlight config to data driven (#19910)
This commit is contained in:
@@ -33,9 +33,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN B7
|
||||
#define BACKLIGHT_LEVELS 5
|
||||
|
||||
#define RGB_DI_PIN E2
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLED_NUM 10
|
||||
|
@@ -8,6 +8,10 @@
|
||||
"pid": "0x0000",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B7",
|
||||
"levels": 5
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
@@ -34,8 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* COL2ROW, ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN F7
|
||||
|
||||
#define RGB_DI_PIN F6
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLED_NUM 4
|
||||
|
@@ -9,6 +9,7 @@
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "F7",
|
||||
"on_state": 0
|
||||
},
|
||||
"indicators": {
|
||||
|
@@ -21,10 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN D4
|
||||
#define BACKLIGHT_LEVELS 12
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
/* RGB underglow */
|
||||
// NOTE: for PS2AVRGB boards, underglow commands are sent via I2C to 0xB0.
|
||||
#define RGBLED_NUM 5
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x0040",
|
||||
"device_version": "2.0.0"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "D4",
|
||||
"levels": 12,
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "atmega32a",
|
||||
"bootloader": "bootloadhid",
|
||||
"community_layouts": ["ortho_4x12", "planck_mit"],
|
||||
|
@@ -24,10 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN D4
|
||||
#define BACKLIGHT_LEVELS 12
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
/* RGB underglow */
|
||||
// NOTE: for PS2AVRGB boards, underglow commands are sent via I2C to 0xB0.
|
||||
#define RGBLED_NUM 4
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x0044",
|
||||
"device_version": "2.0.0"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "D4",
|
||||
"levels": 12,
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "atmega32a",
|
||||
"bootloader": "bootloadhid",
|
||||
"community_layouts": ["ortho_4x4"],
|
||||
|
@@ -25,10 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4 }
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN D4
|
||||
#define BACKLIGHT_LEVELS 12
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
#define RGB_DI_PIN E2
|
||||
#define RGBLED_NUM 12
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x0050",
|
||||
"device_version": "2.0.0"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "D4",
|
||||
"levels": 12,
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "atmega32a",
|
||||
"bootloader": "bootloadhid",
|
||||
"layout_aliases": {
|
||||
|
Reference in New Issue
Block a user