Move backlight config to data driven, part 1 (#19887)

This commit is contained in:
Ryan 2023-02-21 12:05:40 +11:00 • committed by GitHub
commit 9c0ce80d7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
128 changed files with 110 additions and 131 deletions

View file

@ -17,10 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define BACKLIGHT_LED_COUNT 2
#undef BACKLIGHT_PIN
#define BACKLIGHT_PINS { F6, F7 }
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View file

@ -8,6 +8,9 @@
"pid": "0x0000",
"device_version": "0.0.1"
},
"backlight": {
"pins": ["F6", "F7"]
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {

View file

@ -20,4 +20,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Backlight */
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 6
#define BACKLIGHT_PINS { F4, F5 } // Top Row, Bottom Row

View file

@ -8,6 +8,9 @@
"pid": "0x5350",
"device_version": "10.0.1"
},
"backlight": {
"pins": ["F4", "F5"]
},
"indicators": {
"caps_lock": "B0",
"num_lock": "D5",

View file

@ -25,7 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PWM_DRIVER PWMD2
#define BACKLIGHT_PWM_CHANNEL 4
#define BACKLIGHT_PAL_MODE 2
#define BACKLIGHT_ON_STATE 1
#define BACKLIGHT_LEVELS 10
#define BACKLIGHT_BREATHING TRUE

View file

@ -27,8 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PAL_MODE 1
#define BACKLIGHT_LEVELS 6
#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 6
#define BACKLIGHT_ON_STATE 1
/* Underglow */
#define RGBLED_NUM 16

View file

@ -6,9 +6,6 @@
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define BACKLIGHT_LED_COUNT 8
#undef BACKLIGHT_PIN
#define BACKLIGHT_PINS { D1, D0, D4, C6, D7, E6, B4, B5 }
#define BACKLIGHT_LEVELS 8
// ws2812 options

View file

@ -7,6 +7,9 @@
"vid": "0xFEED",
"pid": "0x2171"
},
"backlight": {
"pins": ["D1", "D0", "D4", "C6", "D7", "E6", "B4", "B5"]
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {

View file

@ -32,8 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PAL_MODE 2
#define BACKLIGHT_LEVELS 20
#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 5
#define BACKLIGHT_ON_STATE 0
#define RGB_DI_PIN B15
#define RGBLED_NUM 34

View file

@ -4,6 +4,10 @@
"pid": "0x6584",
"device_version": "0.0.1"
},
"backlight": {
"on_state": 0,
"breathing_period": 5
},
"indicators": {
"caps_lock": "A10"
},

View file

@ -32,7 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PAL_MODE 2
#define BACKLIGHT_LEVELS 20
#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 5
#define RGB_DI_PIN B15
#define RGBLED_NUM 34

View file

@ -4,6 +4,9 @@
"pid": "0x6585",
"device_version": "0.0.2"
},
"backlight": {
"breathing_period": 5
},
"indicators": {
"caps_lock": "C8"
},

View file

@ -27,7 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PAL_MODE 1
#define BACKLIGHT_LEVELS 6
#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 6
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

View file

@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 20
#define BACKLIGHT_DEFAULT_LEVEL 10
#define BREATHING_PERIOD 3
#define RGB_DI_PIN B15
#define RGBLED_NUM 16

View file

@ -8,6 +8,9 @@
"pid": "0x454D",
"device_version": "0.0.2"
},
"backlight": {
"breathing_period": 3
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {

View file

@ -31,8 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PAL_MODE 2
#define BACKLIGHT_LEVELS 20
#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 5
#define BACKLIGHT_ON_STATE 1
#define RGB_DI_PIN B15
#define RGBLED_NUM 24

View file

@ -4,6 +4,9 @@
"pid": "0x5369",
"device_version": "0.0.2"
},
"backlight": {
"breathing_period": 5
},
"processor": "STM32F411",
"bootloader": "stm32-dfu",
"community_layouts": ["ortho_4x12"],

View file

@ -57,6 +57,5 @@
#define BACKLIGHT_LEVELS 6
#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 6
#define SLEEP_LED_GPT_DRIVER GPTD1

View file

@ -28,7 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3
#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 6
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

View file

@ -24,6 +24,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B6
#define BACKLIGHT_ON_STATE 1
#define BACKLIGHT_LEVELS 7
#define BACKLIGHT_LIMIT_VAL 150

Some files were not shown because too many files have changed in this diff Show more