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

@ -23,7 +23,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* Backlight */
#define BACKLIGHT_PIN B5 // Timer 1 on mega32u4
#define BACKLIGHT_BREATHING

View file

@ -7,6 +7,10 @@
"pid": "0x0005",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B5",
"breathing": true
},
"indicators": {
"caps_lock": "C7",
"num_lock": "B6",

View file

@ -24,11 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
/* Backlight */
#define BACKLIGHT_PIN A1
#define BACKLIGHT_BREATHING
#define BACKLIGHT_PWM_DRIVER PWMD2
#define BACKLIGHT_PWM_CHANNEL 2
#define BACKLIGHT_PAL_MODE 2
#define BACKLIGHT_LEVELS 5
#define BACKLIGHT_PWM_OUTPUT_FREQUENCY 1000 // Increases backlight PWM freq if compiled with an unmerged PR. Does no harm without it.

View file

@ -8,6 +8,11 @@
"pid": "0x000A",
"device_version": "0.0.1"
},
"backlight": {
"pin": "A1",
"levels": 5,
"breathing": true
},
"indicators": {
"caps_lock": "B5",
"num_lock": "B6",

View file

@ -24,10 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL
/* Backlight */
#define BACKLIGHT_PIN B7 // Timer 1 on mega32u4
#define BACKLIGHT_BREATHING
/* Underglow */
#define RGB_DI_PIN E2
#define RGBLED_NUM 40

View file

@ -7,6 +7,10 @@
"pid": "0x0002",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B7",
"breathing": true
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["tkl_ansi", "tkl_iso"],

View file

@ -24,13 +24,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* Backlight */
#define BACKLIGHT_PIN A10
#define BACKLIGHT_BREATHING
#define BACKLIGHT_PWM_DRIVER PWMD1
#define BACKLIGHT_PWM_CHANNEL 3
#define BACKLIGHT_PAL_MODE 6
#define BACKLIGHT_LEVELS 5
#define BACKLIGHT_PWM_OUTPUT_FREQUENCY 1000 // Increases backlight PWM freq if compiled with an unmerged PR. Does no harm without it.
/* Underglow */

View file

@ -7,6 +7,11 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"backlight": {
"pin": "A10",
"levels": 5,
"breathing": true
},
"indicators": {
"caps_lock": "A9",
"num_lock": "A8",