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

@ -25,11 +25,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN A10
#define BACKLIGHT_PWM_DRIVER PWMD1
#define BACKLIGHT_PWM_CHANNEL 3
#define BACKLIGHT_PAL_MODE 1
#define BACKLIGHT_LEVELS 20
#define I2C_DRIVER I2CD1
#define I2C_SCL_PIN B6

View file

@ -8,6 +8,10 @@
"pid": "0x2D33",
"device_version": "0.0.1"
},
"backlight": {
"pin": "A10",
"levels": 20
},
"processor": "STM32F401",
"bootloader": "stm32-dfu",
"layouts": {

View file

@ -13,7 +13,6 @@ LTO_ENABLE = no
ENCODER_ENABLE = no
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
BACKLIGHT_DRIVER = pwm
EEPROM_DRIVER = i2c