diff options
Diffstat (limited to 'keyboards/pabile/p40')
-rw-r--r-- | keyboards/pabile/p40/config.h | 32 | ||||
-rw-r--r-- | keyboards/pabile/p40/info.json | 89 | ||||
-rw-r--r-- | keyboards/pabile/p40/p40.c | 1 | ||||
-rw-r--r-- | keyboards/pabile/p40/p40.h | 16 |
4 files changed, 49 insertions, 89 deletions
diff --git a/keyboards/pabile/p40/config.h b/keyboards/pabile/p40/config.h deleted file mode 100644 index b8bc06ce43..0000000000 --- a/keyboards/pabile/p40/config.h +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2020 Pabile - -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 - - -/* pin-out -for PCB ver0.01 452019 */ -#define MATRIX_ROW_PINS { F6, B3, B2, B6 } -#define MATRIX_COL_PINS { F4, F5, B5, B4, E6, D7, C6, D4, D0, D1 } -/* -for pro micro facing back of pcb -#define MATRIX_ROW_PINS { D4, E6, B4, B5 } -#define MATRIX_COL_PINS { D1, D0, B6, B2, B3, B1, F7, F6, F5, F4 } -*/ - -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW diff --git a/keyboards/pabile/p40/info.json b/keyboards/pabile/p40/info.json index 703a3b1f80..7d0234e20e 100644 --- a/keyboards/pabile/p40/info.json +++ b/keyboards/pabile/p40/info.json @@ -8,52 +8,61 @@ "pid": "0x6666", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["F4", "F5", "B5", "B4", "E6", "D7", "C6", "D4", "D0", "D1"], + "rows": ["F6", "B3", "B2", "B6"] + }, + "diode_direction": "COL2ROW", "processor": "atmega32u4", "bootloader": "caterina", "community_layouts": ["ortho_4x10"], "layouts": { "LAYOUT_ortho_4x10": { "layout": [ - {"w":1, "x":0, "y":0}, - {"w":1, "x":1, "y":0}, - {"w":1, "x":2, "y":0}, - {"w":1, "x":3, "y":0}, - {"w":1, "x":4, "y":0}, - {"w":1, "x":5, "y":0}, - {"w":1, "x":6, "y":0}, - {"w":1, "x":7, "y":0}, - {"w":1, "x":8, "y":0}, - {"w":1, "x":9, "y":0}, - {"w":1, "x":0.25, "y":1}, - {"w":1, "x":1.25, "y":1}, - {"w":1, "x":2.25, "y":1}, - {"w":1, "x":3.25, "y":1}, - {"w":1, "x":4.25, "y":1}, - {"w":1, "x":5.25, "y":1}, - {"w":1, "x":6.25, "y":1}, - {"w":1, "x":7.25, "y":1}, - {"w":1, "x":8.25, "y":1}, - {"w":1, "x":9.25, "y":1}, - {"w":1, "x":0.5, "y":2}, - {"w":1, "x":1.5, "y":2}, - {"w":1, "x":2.5, "y":2}, - {"w":1, "x":3.5, "y":2}, - {"w":1, "x":4.5, "y":2}, - {"w":1, "x":5.5, "y":2}, - {"w":1, "x":6.5, "y":2}, - {"w":1, "x":7.5, "y":2}, - {"w":1, "x":8.5, "y":2}, - {"w":1, "x":9.5, "y":2}, - {"w":1, "x":0.75, "y":3}, - {"w":1, "x":1.75, "y":3}, - {"w":1, "x":2.75, "y":3}, - {"w":1, "x":3.75, "y":3}, - {"w":1, "x":4.75, "y":3}, - {"w":1, "x":5.75, "y":3}, - {"w":1, "x":6.75, "y":3}, - {"w":1, "x":7.75, "y":3}, - {"w":1, "x":8.75, "y":3}, - {"w":1, "x":9.75, "y":3}] + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0}, + {"matrix": [0, 3], "x": 3, "y": 0}, + {"matrix": [0, 4], "x": 4, "y": 0}, + {"matrix": [0, 5], "x": 5, "y": 0}, + {"matrix": [0, 6], "x": 6, "y": 0}, + {"matrix": [0, 7], "x": 7, "y": 0}, + {"matrix": [0, 8], "x": 8, "y": 0}, + {"matrix": [0, 9], "x": 9, "y": 0}, + + {"matrix": [1, 0], "x": 0.25, "y": 1}, + {"matrix": [1, 1], "x": 1.25, "y": 1}, + {"matrix": [1, 2], "x": 2.25, "y": 1}, + {"matrix": [1, 3], "x": 3.25, "y": 1}, + {"matrix": [1, 4], "x": 4.25, "y": 1}, + {"matrix": [1, 5], "x": 5.25, "y": 1}, + {"matrix": [1, 6], "x": 6.25, "y": 1}, + {"matrix": [1, 7], "x": 7.25, "y": 1}, + {"matrix": [1, 8], "x": 8.25, "y": 1}, + {"matrix": [1, 9], "x": 9.25, "y": 1}, + + {"matrix": [2, 0], "x": 0.5, "y": 2}, + {"matrix": [2, 1], "x": 1.5, "y": 2}, + {"matrix": [2, 2], "x": 2.5, "y": 2}, + {"matrix": [2, 3], "x": 3.5, "y": 2}, + {"matrix": [2, 4], "x": 4.5, "y": 2}, + {"matrix": [2, 5], "x": 5.5, "y": 2}, + {"matrix": [2, 6], "x": 6.5, "y": 2}, + {"matrix": [2, 7], "x": 7.5, "y": 2}, + {"matrix": [2, 8], "x": 8.5, "y": 2}, + {"matrix": [2, 9], "x": 9.5, "y": 2}, + + {"matrix": [3, 0], "x": 0.75, "y": 3}, + {"matrix": [3, 1], "x": 1.75, "y": 3}, + {"matrix": [3, 2], "x": 2.75, "y": 3}, + {"matrix": [3, 3], "x": 3.75, "y": 3}, + {"matrix": [3, 4], "x": 4.75, "y": 3}, + {"matrix": [3, 5], "x": 5.75, "y": 3}, + {"matrix": [3, 6], "x": 6.75, "y": 3}, + {"matrix": [3, 7], "x": 7.75, "y": 3}, + {"matrix": [3, 8], "x": 8.75, "y": 3}, + {"matrix": [3, 9], "x": 9.75, "y": 3} + ] } } } diff --git a/keyboards/pabile/p40/p40.c b/keyboards/pabile/p40/p40.c deleted file mode 100644 index b1bfb7de2b..0000000000 --- a/keyboards/pabile/p40/p40.c +++ /dev/null @@ -1 +0,0 @@ -#include "p40.h" diff --git a/keyboards/pabile/p40/p40.h b/keyboards/pabile/p40/p40.h deleted file mode 100644 index 4e1e08a6fc..0000000000 --- a/keyboards/pabile/p40/p40.h +++ /dev/null @@ -1,16 +0,0 @@ -#pragma once - -#include "quantum.h" - -#define LAYOUT_ortho_4x10( \ - k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, \ - k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, \ - k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, \ - k30, k31, k32, k33, k34, k35, k36, k37, k38, k39 \ -) \ -{ \ - {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09}, \ - {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19}, \ - {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29}, \ - {k30, k31, k32, k33, k34, k35, k36, k37, k38, k39} \ -} |