Move matrix config to info.json, part 1 (#19985)
parent
b34d51d08d
commit
23c365b023
@ -1,9 +0,0 @@ |
|||||||
#pragma once |
|
||||||
|
|
||||||
|
|
||||||
/* pcb default pin-out */ |
|
||||||
#define MATRIX_ROW_PINS { E6, B4, B5 } |
|
||||||
#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D1, D0, D4, C6, D7 } |
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
@ -1,34 +0,0 @@ |
|||||||
/* Copyright 2018
|
|
||||||
* |
|
||||||
* 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 |
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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 MATRIX_ROW_PINS { B4, E6, D7, C6, D4, D0, D1, D2, D3 } |
|
||||||
#define MATRIX_COL_PINS { B5, B6, B2, B3, B1, F7, F6, F5, F4 } |
|
||||||
|
|
||||||
/* COL2ROW, ROW2COL*/ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
@ -1,4 +1,9 @@ |
|||||||
{ |
{ |
||||||
|
"matrix_pins": { |
||||||
|
"cols": ["B5", "B6", "B2", "B3", "B1", "F7", "F6", "F5", "F4"], |
||||||
|
"rows": ["B4", "E6", "D7", "C6", "D4", "D0", "D1", "D2", "D3"] |
||||||
|
}, |
||||||
|
"diode_direction": "COL2ROW", |
||||||
"processor": "atmega32u4", |
"processor": "atmega32u4", |
||||||
"bootloader": "caterina" |
"bootloader": "caterina" |
||||||
} |
} |
||||||
|
@ -1,34 +0,0 @@ |
|||||||
/* Copyright 2018
|
|
||||||
* |
|
||||||
* 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 |
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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 MATRIX_ROW_PINS { D3, D2, D1, D0, B7, B3, B2, B1, B0 } |
|
||||||
#define MATRIX_COL_PINS { C6, C7, D6, D7, B5, B6, F7, F6, F5 } |
|
||||||
|
|
||||||
/* COL2ROW, ROW2COL*/ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
@ -1,4 +1,9 @@ |
|||||||
{ |
{ |
||||||
|
"matrix_pins": { |
||||||
|
"cols": ["C6", "C7", "D6", "D7", "B5", "B6", "F7", "F6", "F5"], |
||||||
|
"rows": ["D3", "D2", "D1", "D0", "B7", "B3", "B2", "B1", "B0"] |
||||||
|
}, |
||||||
|
"diode_direction": "COL2ROW", |
||||||
"processor": "atmega32u4", |
"processor": "atmega32u4", |
||||||
"bootloader": "halfkay" |
"bootloader": "halfkay" |
||||||
} |
} |
||||||
|
@ -1,28 +0,0 @@ |
|||||||
/* Copyright 2021
|
|
||||||
* |
|
||||||
* 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 |
|
||||||
|
|
||||||
|
|
||||||
/* key matrix pins
|
|
||||||
* Direct pins is not used because there is not a shared ground position |
|
||||||
* between all compatible microcontrollers. |
|
||||||
*/
|
|
||||||
#define MATRIX_ROW_PINS { D7 } |
|
||||||
#define MATRIX_COL_PINS { D1, D0, D4, C6, E6, B4, F4, F5, F6, F7, B3, B2 } |
|
||||||
|
|
||||||
/* doesn't really matter lol */ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
@ -1,4 +1,9 @@ |
|||||||
{ |
{ |
||||||
|
"matrix_pins": { |
||||||
|
"cols": ["D1", "D0", "D4", "C6", "E6", "B4", "F4", "F5", "F6", "F7", "B3", "B2"], |
||||||
|
"rows": ["D7"] |
||||||
|
}, |
||||||
|
"diode_direction": "COL2ROW", |
||||||
"processor": "atmega32u4", |
"processor": "atmega32u4", |
||||||
"bootloader": "caterina" |
"bootloader": "caterina" |
||||||
} |
} |
||||||
|
@ -1,30 +0,0 @@ |
|||||||
/* Copyright 2021
|
|
||||||
* |
|
||||||
* 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 |
|
||||||
|
|
||||||
|
|
||||||
/* key matrix pins */ |
|
||||||
|
|
||||||
// Note from original contributor (ryjelsum):
|
|
||||||
// Untested - don't have teensy2. if some keys do not function or are in wrong place,
|
|
||||||
// please check the pin definitions. I may have screwed up. :)
|
|
||||||
|
|
||||||
#define MATRIX_ROW_PINS { D3 } |
|
||||||
#define MATRIX_COL_PINS { B7, D0, D1, D2, C6, C7, F6, F7, B6, B5, D7, D6 } |
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
@ -1,4 +1,9 @@ |
|||||||
{ |
{ |
||||||
|
"matrix_pins": { |
||||||
|
"cols": ["B7", "D0", "D1", "D2", "C6", "C7", "F6", "F7", "B6", "B5", "D7", "D6"], |
||||||
|
"rows": ["D3"] |
||||||
|
}, |
||||||
|
"diode_direction": "COL2ROW", |
||||||
"processor": "atmega32u4", |
"processor": "atmega32u4", |
||||||
"bootloader": "halfkay" |
"bootloader": "halfkay" |
||||||
} |
} |
||||||
|
@ -1,9 +0,0 @@ |
|||||||
#pragma once |
|
||||||
|
|
||||||
|
|
||||||
/* key matrix pins */ |
|
||||||
#define MATRIX_ROW_PINS { D1, D0, D4 } |
|
||||||
#define MATRIX_COL_PINS { C6, D7, E6, B4 } |
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
@ -1,25 +0,0 @@ |
|||||||
/*
|
|
||||||
Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> |
|
||||||
|
|
||||||
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 |
|
||||||
|
|
||||||
|
|
||||||
// ROWS: Top to bottom, COLS: Left to right
|
|
||||||
#define MATRIX_ROW_PINS {D0,C2,C4,D4,D2} |
|
||||||
#define MATRIX_COL_PINS {C5,C6,C7,B7,B6,B5,B4,B3,B2,B1,B0,D6,D5,D3,D1} |
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
@ -1,26 +0,0 @@ |
|||||||
/*
|
|
||||||
Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com> |
|
||||||
|
|
||||||
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 |
|
||||||
|
|
||||||
|
|
||||||
// ROWS: Top to bottom, COLS: Left to right
|
|
||||||
|
|
||||||
#define MATRIX_ROW_PINS {D4,D1,C2,C4,C7,B2} |
|
||||||
#define MATRIX_COL_PINS {D3,D0,D2,B6,B5,B4,B3,D6,D5,B0,B1} |
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
@ -1,26 +0,0 @@ |
|||||||
/*
|
|
||||||
Copyright 2022 Stefan Sundin "4pplet" <4pplet@protonmail.com> |
|
||||||
|
|
||||||
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 |
|
||||||
|
|
||||||
|
|
||||||
// ROWS: Top to bottom, COLS: Left to right
|
|
||||||
|
|
||||||
#define MATRIX_ROW_PINS {B14,A9,B6,B5,B4} |
|
||||||
#define MATRIX_COL_PINS {B2,A4,A3,A2,F1,F0,C15,C14,C13,B9,B8,B7,A15,B3} |
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
@ -1,26 +0,0 @@ |
|||||||
/*
|
|
||||||
Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com> |
|
||||||
|
|
||||||
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 |
|
||||||
|
|
||||||
|
|
||||||
// ROWS: Top to bottom, COLS: Left to right
|
|
||||||
|
|
||||||
#define MATRIX_ROW_PINS {B14,A9,B6,B5,B4} |
|
||||||
#define MATRIX_COL_PINS {B2,A4,A3,A2,F1,F0,C15,C14,C13,B9,B8,B7,A15,B3} |
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */ |
|
||||||
#define DIODE_DIRECTION COL2ROW |
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue