1
0
Fork 0

Move backlight config to data driven (#19910)

This commit is contained in:
Ryan 2023-02-26 08:37:57 +11:00 committed by GitHub
parent ba7546a334
commit 314f6c1ddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1003 changed files with 1873 additions and 1684 deletions

View file

@ -20,13 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { A2, A1, B8, A10, C15, A15, B7, B6, C14, C13}
#define DIODE_DIRECTION COL2ROW
/* In switch leds */
#define BACKLIGHT_PIN A3
#define BACKLIGHT_PWM_DRIVER PWMD2
#define BACKLIGHT_PWM_CHANNEL 4
#define BACKLIGHT_PAL_MODE 2
#define BACKLIGHT_LEVELS 10
#define BACKLIGHT_BREATHING TRUE
/* Underglow */
#define RGB_DI_PIN A7

View file

@ -8,6 +8,11 @@
"pid": "0x0007",
"device_version": "0.0.1"
},
"backlight": {
"pin": "A3",
"levels": 10,
"breathing": true
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {

View file

@ -8,7 +8,6 @@ CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = pwm
RGBLIGHT_ENABLE = yes
WS2812_DRIVER = spi

View file

@ -20,13 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { A2, A1, B8, A10, C15, A15, B7, B6, C14, C13}
#define DIODE_DIRECTION COL2ROW
/* In switch leds */
#define BACKLIGHT_PIN A6
#define BACKLIGHT_PWM_DRIVER PWMD3
#define BACKLIGHT_PWM_CHANNEL 1
#define BACKLIGHT_PAL_MODE 1
#define BACKLIGHT_LEVELS 6
#define BACKLIGHT_BREATHING
/* Underglow */
#define RGBLED_NUM 16

View file

@ -8,6 +8,11 @@
"pid": "0x0010",
"device_version": "0.0.2"
},
"backlight": {
"pin": "A6",
"levels": 6,
"breathing": true
},
"indicators": {
"caps_lock": "B1",
"num_lock": "B12",