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
1003 changed files with 1873 additions and 1684 deletions

View File

@@ -34,10 +34,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_BREATHING
#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 */

View File

@@ -20,8 +20,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Fix for prototype missing COL0, COL1, using backlight and RGB underglow I/O pins
#undef MATRIX_COL_PINS
#define MATRIX_COL_PINS { C4, B7, C6, C7, B6, B5, B4, B3, B2, B1, B0, D6 }
// This directs backlight code to use a disconnected pin, so the firwmare still has
// backlight code and VIA support even though it doesn't do anything.
#undef BACKLIGHT_PIN
#define BACKLIGHT_PIN D1

View File

@@ -1,4 +1,9 @@
{
"backlight": {
"pin": "D1",
"levels": 5,
"breathing": true
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu"
}

View File

@@ -1,4 +1,9 @@
{
"backlight": {
"pin": "B7",
"levels": 5,
"breathing": true
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu"
}