Migrate DIRECT_PINS to data driven (#19826)

This commit is contained in:
Ryan
2023-02-14 18:39:41 +11:00
committed by GitHub
parent 0b796b91a3
commit 2cdf99ae95
158 changed files with 560 additions and 1197 deletions

View File

@@ -17,12 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
/* key matrix size */
#define MATRIX_ROWS 1
#define MATRIX_COLS 1
#define DIRECT_PINS {{NO_PIN}}
#define ADNS9800_CS_PIN F7
#define POINTING_DEVICE_INVERT_X

View File

@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"matrix_pins": {
"direct": [
[null]
]
},
"layouts": {
"LAYOUT": {
"layout": [

View File

@@ -17,18 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
/* key matrix size */
#define MATRIX_ROWS 3
#define MATRIX_COLS 3
/* Keyboard Matrix Assignments */
#define DIRECT_PINS { \
{ D1, D0, C6 }, \
{ D7, B5, B6 }, \
{ B7, D6, F7 } \
}
#define BACKLIGHT_PIN F6
#define BACKLIGHT_LEVELS 5

View File

@@ -10,6 +10,13 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
"direct": [
["D1", "D0", "C6"],
["D7", "B5", "B6"],
["B7", "D6", "F7"]
]
},
"layouts": {
"LAYOUT": {
"layout": [

View File

@@ -16,17 +16,6 @@
#pragma once
/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 3
/* Keyboard Matrix Assignments */
#define DIRECT_PINS { \
{ D7, B1, D2 }, \
{ E6, B4, B2 } \
}
#define ENCODERS_PAD_A { D1 }
#define ENCODERS_PAD_B { D0 }

View File

@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
"direct": [
["D7", "B1", "D2"],
["E6", "B4", "B2"]
]
},
"layouts": {
"LAYOUT": {
"layout": [

View File

@@ -17,19 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
/*
BUTTON_MUTE = _BV(4),
BUTTON_STOP = _BV(0),
BUTTON_TRACK_PREVIOUS = _BV(1),
BUTTON_TRACK_NEXT = _BV(2),
BUTTON_PLAY_PAUSE = _BV(3),
*/
#define DIRECT_PINS \
{ \
{ B4, B0, B1, B2, B3 } \
}
/*
RE_CHANNEL_A = _BV(6),
RE_CHANNEL_B = _BV(5),

View File

@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
"direct": [
["B4", "B0", "B1", "B2", "B3"]
]
},
"debounce": 50,
"layouts": {
"LAYOUT": {

View File

@@ -16,27 +16,6 @@
#pragma once
/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 3
/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define DIRECT_PINS { \
{ E6, D7, C6 }, \
{ B4, B5, D4 } \
}
//#define RGB_DI_PIN E2
//#ifdef RGB_DI_PIN
//# define RGBLED_NUM 16

View File

@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
"direct": [
["E6", "D7", "C6"],
["B4", "B5", "D4"]
]
},
"layouts": {
"LAYOUT": {
"layout": [

View File

@@ -1,13 +1,5 @@
#pragma once
/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 3
/* define direct pins used */
#define DIRECT_PINS { { D1,C6,B4}, { D0,D4,D7} }
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

View File

@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
"direct": [
["D1", "C6", "B4"],
["D0", "D4", "D7"]
]
},
"community_layouts": ["ortho_2x3"],
"layouts": {
"LAYOUT_ortho_2x3": {

View File

@@ -1,16 +1,5 @@
#pragma once
/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 4
/* define direct pins used */
#define DIRECT_PINS \
{ \
{D1, D0, D4, C6}, { D7, E6, B4, B5 } \
}
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

View File

@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
"direct": [
["D1", "D0", "D4", "C6"],
["D7", "E6", "B4", "B5"]
]
},
"layouts": {
"LAYOUT_ortho_2x4": {
"layout": [

View File

@@ -1,13 +1,5 @@
#pragma once
/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 5
/* define direct pins used */
#define DIRECT_PINS { { D1,C6,B4,B5,B2}, { D0,D4,D7,E6,B6} }
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

View File

@@ -10,6 +10,12 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
"direct": [
["D1", "C6", "B4", "B5", "B2"],
["D0", "D4", "D7", "E6", "B6"]
]
},
"layouts": {
"LAYOUT_ortho_2x5": {
"layout": [