Move backlight config to data driven (#19910)
This commit is contained in:
@@ -32,7 +32,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/* Enable double tab */
|
||||
#define TAPPING_TERM 175
|
||||
|
||||
#define BACKLIGHT_PIN B7
|
||||
#define BACKLIGHT_BREATHING
|
||||
#define BACKLIGHT_LEVELS 5
|
||||
|
||||
@@ -8,6 +8,11 @@
|
||||
"pid": "0x6464",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B7",
|
||||
"levels": 5,
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "at90usb1286",
|
||||
"bootloader": "halfkay",
|
||||
"layouts": {
|
||||
|
||||
@@ -31,8 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MATRIX_ROW_PINS { F0, F1, F4, F5, F6, F7 }
|
||||
#define MATRIX_COL_PINS { B0, B1, B2, B3 }
|
||||
|
||||
#define BACKLIGHT_PIN B7
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION ROW2COL
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x4096",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B7"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "halfkay",
|
||||
"layouts": {
|
||||
|
||||
@@ -17,9 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#define BACKLIGHT_PIN F6
|
||||
#define BACKLIGHT_LEVELS 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
"pid": "0x1134",
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "F6",
|
||||
"levels": 5
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"matrix_pins": {
|
||||
|
||||
@@ -34,7 +34,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#define RGB_DI_PIN D3
|
||||
#define RGBLED_NUM 4
|
||||
|
||||
#define BACKLIGHT_PIN B6
|
||||
#define BACKLIGHT_LEVELS 7
|
||||
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
"pid": "0x0000",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B6",
|
||||
"levels": 7
|
||||
},
|
||||
"split": {
|
||||
"soft_serial_pin": "D0"
|
||||
},
|
||||
|
||||
@@ -34,11 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* COL2ROW, ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#ifdef __AVR__
|
||||
#define BACKLIGHT_PIN B7
|
||||
#define BACKLIGHT_BREATHING
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
"usb": {
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B7",
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu"
|
||||
}
|
||||
|
||||
@@ -29,9 +29,3 @@
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* Backlight configuration
|
||||
* Backlight LEDs on B8
|
||||
*/
|
||||
#define BACKLIGHT_PIN B8
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
"usb": {
|
||||
"device_version": "6.0.0"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B8",
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "STM32F303",
|
||||
"bootloader": "stm32-dfu",
|
||||
"board": "QMK_PROTON_C"
|
||||
|
||||
@@ -31,12 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* Backlight configuration
|
||||
* Backlight LEDs on B8
|
||||
*/
|
||||
#define BACKLIGHT_PIN B8
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
/* RGB underglow configuration */
|
||||
#define WS2812_SPI SPID1
|
||||
#define WS2812_SPI_MOSI_PAL_MODE 5
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
"usb": {
|
||||
"device_version": "7.0.0"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B8",
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "STM32F303",
|
||||
"bootloader": "stm32-dfu",
|
||||
"board": "QMK_PROTON_C"
|
||||
|
||||
@@ -38,8 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN B7
|
||||
|
||||
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||
#define MATRIX_HAS_GHOST
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0690",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B7"
|
||||
},
|
||||
"processor": "at90usb1286",
|
||||
"bootloader": "halfkay",
|
||||
"layouts": {
|
||||
|
||||
@@ -37,10 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define ENCODERS_PAD_A { B2 }
|
||||
#define ENCODERS_PAD_B { B3 }
|
||||
|
||||
#define BACKLIGHT_PIN B7
|
||||
#define BACKLIGHT_BREATHING
|
||||
#define BACKLIGHT_LEVELS 4
|
||||
|
||||
#define RGB_DI_PIN E2
|
||||
#define RGB_MATRIX_LED_COUNT 30
|
||||
// RGB Matrix Animation modes. Explicitly enabled
|
||||
|
||||
@@ -8,6 +8,11 @@
|
||||
"pid": "0x0000",
|
||||
"device_version": "0.0.2"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B7",
|
||||
"levels": 4,
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#define MATRIX_ROW_PINS { D7, E6, B4, B6, B2 }
|
||||
#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, D3, D2, D1, D0, D4, C6 }
|
||||
|
||||
/* leds */
|
||||
#define BACKLIGHT_PIN B5
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
"pid": "0x6060",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B5",
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"community_layouts": ["ortho_5x12"],
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN B5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x6060",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B5"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
||||
@@ -18,11 +18,8 @@
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Backlighting include */
|
||||
#define BACKLIGHT_PIN B14
|
||||
#define BACKLIGHT_PWM_DRIVER PWMD5
|
||||
#define BACKLIGHT_PWM_CHANNEL 1
|
||||
#define BACKLIGHT_LEVELS 5
|
||||
|
||||
/* Encoder */
|
||||
#define ENCODERS_PAD_A \
|
||||
|
||||
@@ -8,6 +8,11 @@
|
||||
"pid": "0x5444",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"driver": "software",
|
||||
"pin": "B14",
|
||||
"levels": 5
|
||||
},
|
||||
"debounce": 1,
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
|
||||
@@ -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 # Enable keyboard backlight functionality
|
||||
BACKLIGHT_DRIVER = software
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
SLEEP_LED_ENABLE = yes
|
||||
|
||||
@@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN B7
|
||||
#define BACKLIGHT_LEVELS 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
"pid": "0x6578",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B7",
|
||||
"levels": 5
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
||||
@@ -22,9 +22,6 @@
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN A0
|
||||
#define BACKLIGHT_LEVELS 5
|
||||
|
||||
#define MOUSEKEY_INTERVAL 32
|
||||
|
||||
#define TAPPING_TERM 175
|
||||
@@ -8,6 +8,11 @@
|
||||
"pid": "0x002A",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"driver": "software",
|
||||
"pin": "A0",
|
||||
"levels": 5
|
||||
},
|
||||
"processor": "STM32F401",
|
||||
"bootloader": "stm32-dfu",
|
||||
"board": "BLACKPILL_STM32_F401",
|
||||
|
||||
@@ -9,6 +9,5 @@ CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = yes # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
BACKLIGHT_DRIVER = software
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
|
||||
@@ -31,12 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* Backlight configuration
|
||||
* Backlight LEDs on B8
|
||||
*/
|
||||
#define BACKLIGHT_PIN B8
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
#define WS2812_SPI SPID1
|
||||
#define WS2812_SPI_MOSI_PAL_MODE 5
|
||||
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
"pid": "0x0000",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B8",
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "STM32F303",
|
||||
"bootloader": "stm32-dfu",
|
||||
"board": "QMK_PROTON_C",
|
||||
|
||||
@@ -23,8 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MATRIX_ROW_PINS { D1, D0, D4, C6, D7, E6 }
|
||||
#define MATRIX_COL_PINS { F4, F6, B1, B2 }
|
||||
|
||||
#define BACKLIGHT_PIN B6
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
@@ -33,10 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* Backlight configuration
|
||||
*/
|
||||
#define BACKLIGHT_LEVELS 4
|
||||
|
||||
/* Underlight configuration
|
||||
*/
|
||||
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
"pid": "0x6060",
|
||||
"device_version": "0.0.3"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B6",
|
||||
"levels": 4
|
||||
},
|
||||
"indicators": {
|
||||
"num_lock": "D5",
|
||||
"on_state": 0
|
||||
|
||||
Reference in New Issue
Block a user