Move matrix config to info.json, part 7 (#20020)
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
Copyright 2020 Team Mechlovin'
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#define MATRIX_ROW_PINS { B1, A0, C13, A1, A2}
|
||||
#define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A15 }
|
||||
|
||||
#define RGB_DI_PIN A7
|
||||
#define RGB_MATRIX_LED_COUNT 91
|
||||
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||
|
@@ -3,6 +3,11 @@
|
||||
"usb": {
|
||||
"pid": "0xAEC1"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A10", "A9", "A8", "B15", "B14", "B13", "B12", "B11", "B10", "B8", "B4", "B5", "B3", "C14", "A15"],
|
||||
"rows": ["B1", "A0", "C13", "A1", "A2"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"processor": "STM32F303",
|
||||
"board": "QMK_PROTON_C",
|
||||
"bootloader": "stm32-dfu",
|
||||
|
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#define MATRIX_ROW_PINS { B1, A0, C13, A1, A2}
|
||||
#define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A7 }
|
||||
|
||||
#define RGB_DI_PIN A15
|
||||
#define RGBLED_NUM 23
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
|
@@ -3,6 +3,11 @@
|
||||
"usb": {
|
||||
"pid": "0xAEC2"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A10", "A9", "A8", "B15", "B14", "B13", "B12", "B11", "B10", "B8", "B4", "B5", "B3", "C14", "A7"],
|
||||
"rows": ["B1", "A0", "C13", "A1", "A2"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "A4", "pin_b": "A3"}
|
||||
|
@@ -17,9 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#define MATRIX_ROW_PINS { A4, A3, C13, A1, A2}
|
||||
#define MATRIX_COL_PINS { B10, B11, B2, B1, B0, A6, A5, A10, A9, A15, B3, B4, B5, B8, B9 }
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
#define RGB_DI_PIN A7
|
||||
#define WS2812_SPI SPID1 // default: SPID1
|
||||
|
@@ -3,6 +3,11 @@
|
||||
"usb": {
|
||||
"pid": "0xAEC3"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B10", "B11", "B2", "B1", "B0", "A6", "A5", "A10", "A9", "A15", "B3", "B4", "B5", "B8", "B9"],
|
||||
"rows": ["A4", "A3", "C13", "A1", "A2"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "B12", "pin_b": "B13"}
|
||||
|
@@ -17,12 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#define MATRIX_ROW_PINS { B1, A0, C13, A1, A2}
|
||||
#define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A15 }
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PWM_DRIVER PWMD3
|
||||
#define BACKLIGHT_PWM_CHANNEL 3
|
||||
|
||||
|
@@ -1,5 +1,10 @@
|
||||
{
|
||||
"keyboard_name": "Adelais",
|
||||
"matrix_pins": {
|
||||
"cols": ["A10", "A9", "A8", "B15", "B14", "B13", "B12", "B11", "B10", "B8", "B4", "B5", "B3", "C14", "A15"],
|
||||
"rows": ["B1", "A0", "C13", "A1", "A2"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"backlight": {
|
||||
"pin": "B0",
|
||||
"breathing": true
|
||||
|
Reference in New Issue
Block a user