diff options
Diffstat (limited to 'keyboards/percent')
22 files changed, 657 insertions, 746 deletions
diff --git a/keyboards/percent/booster/booster.c b/keyboards/percent/booster/booster.c deleted file mode 100644 index bbae5d6f4e..0000000000 --- a/keyboards/percent/booster/booster.c +++ /dev/null @@ -1,16 +0,0 @@ -/* Copyright 2019 MechMerlin - * - * 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/>. - */ -#include "booster.h" diff --git a/keyboards/percent/booster/booster.h b/keyboards/percent/booster/booster.h deleted file mode 100644 index be2d2cb12b..0000000000 --- a/keyboards/percent/booster/booster.h +++ /dev/null @@ -1,32 +0,0 @@ -/* Copyright 2019 MechMerlin - * - * 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 - -#include "quantum.h" - -#define LAYOUT_numpad_5x4( \ - K00, K01, K02, K03, \ - K10, K11, K12, \ - K20, K21, K22, K23, \ - K30, K31, K32, \ - K40, K42, K33 \ -) { \ - { K00, K01, K02, K03 }, \ - { K10, K11, K12, KC_NO }, \ - { K20, K21, K22, K23 }, \ - { K30, K31, K32, K33 }, \ - { K40, KC_NO, K42, KC_NO }, \ -} diff --git a/keyboards/percent/booster/config.h b/keyboards/percent/booster/config.h index b452a0dcb6..2cfff5c7bf 100644 --- a/keyboards/percent/booster/config.h +++ b/keyboards/percent/booster/config.h @@ -17,14 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once - -#define MATRIX_ROW_PINS { D1, D6, D7, B4, B5 } -#define MATRIX_COL_PINS { C7, D4, D2, D0 } - -#define DIODE_DIRECTION COL2ROW - -#define RGB_DI_PIN E2 -#ifdef RGB_DI_PIN #define RGBLED_NUM 10 #define RGBLIGHT_HUE_STEP 8 #define RGBLIGHT_SAT_STEP 8 @@ -41,4 +33,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define RGBLIGHT_EFFECT_RGB_TEST #define RGBLIGHT_EFFECT_ALTERNATING #define RGBLIGHT_EFFECT_TWINKLE -#endif diff --git a/keyboards/percent/booster/info.json b/keyboards/percent/booster/info.json index f92476c9f6..ba8be4a603 100644 --- a/keyboards/percent/booster/info.json +++ b/keyboards/percent/booster/info.json @@ -8,32 +8,44 @@ "pid": "0x4253", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["C7", "D4", "D2", "D0"], + "rows": ["D1", "D6", "D7", "B4", "B5"] + }, + "diode_direction": "COL2ROW", "backlight": { "pin": "B7" }, + "ws2812": { + "pin": "E2" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "community_layouts": ["numpad_5x4"], "layouts": { "LAYOUT_numpad_5x4": { "layout": [ - {"label":"K00 (D1,C7)", "x":0, "y":0}, - {"label":"K01 (D1,D4)", "x":1, "y":0}, - {"label":"K02 (D1,D2)", "x":2, "y":0}, - {"label":"K03 (D1,D0)", "x":3, "y":0}, - {"label":"K10 (D6,C7)", "x":0, "y":1}, - {"label":"K11 (D6,D4)", "x":1, "y":1}, - {"label":"K12 (D6,D2)", "x":2, "y":1}, - {"label":"K20 (D7,C7)", "x":0, "y":2}, - {"label":"K21 (D7,D4)", "x":1, "y":2}, - {"label":"K22 (D7,D2)", "x":2, "y":2}, - {"label":"K23 (D7,D0)", "x":3, "y":1, "h":2}, - {"label":"K30 (B4,C7)", "x":0, "y":3}, - {"label":"K31 (B4,D4)", "x":1, "y":3}, - {"label":"K32 (B4,D2)", "x":2, "y":3}, - {"label":"K40 (B5,C7)", "x":0, "y":4, "w":2}, - {"label":"K42 (B5,D2)", "x":2, "y":4}, - {"label":"K33 (B4,D0)", "x":3, "y":3, "h":2} + {"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": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 1], "x": 1, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2}, + {"matrix": [2, 3], "x": 3, "y": 1, "h": 2}, + + {"matrix": [3, 0], "x": 0, "y": 3}, + {"matrix": [3, 1], "x": 1, "y": 3}, + {"matrix": [3, 2], "x": 2, "y": 3}, + + {"matrix": [4, 0], "x": 0, "y": 4, "w": 2}, + {"matrix": [4, 2], "x": 2, "y": 4}, + {"matrix": [3, 3], "x": 3, "y": 3, "h": 2} ] } } diff --git a/keyboards/percent/canoe/canoe.c b/keyboards/percent/canoe/canoe.c deleted file mode 100644 index 572ff50b01..0000000000 --- a/keyboards/percent/canoe/canoe.c +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.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/>. -*/ - -#include "canoe.h" diff --git a/keyboards/percent/canoe/canoe.h b/keyboards/percent/canoe/canoe.h deleted file mode 100644 index 83d7c08bb5..0000000000 --- a/keyboards/percent/canoe/canoe.h +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.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 - -#include "quantum.h" - -#define _x_ KC_NO - -#define LAYOUT_65_iso_blocker( \ - K0D, K0C, K0B, K0A, K09, K08, K07, K06, K05, K04, K03, K02, K01, K00, K0E, \ - K1D, K1C, K1B, K1A, K19, K18, K17, K16, K15, K14, K13, K12, K11, K1E, \ - K2D, K2C, K2B, K2A, K29, K28, K27, K26, K25, K24, K23, K22, K10, K21, K2E, \ - K3D, K4A, K3C, K3B, K3A, K39, K38, K37, K36, K35, K34, K33, K32, K30, K3E, \ - K4D, K4C, K4B, K48, K44, K43, K42, K40, K4E \ -){ \ - { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ - { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ - { _x_, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ - { K30, _x_, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ - { K40, _x_, K42, K43, K44, _x_, _x_, _x_, K48, _x_, K4A, K4B, K4C, K4D, K4E } \ -} - -#define LAYOUT_65_ansi_blocker( \ - K0D, K0C, K0B, K0A, K09, K08, K07, K06, K05, K04, K03, K02, K01, K00, K0E, \ - K1D, K1C, K1B, K1A, K19, K18, K17, K16, K15, K14, K13, K12, K11, K10, K1E, \ - K2D, K2C, K2B, K2A, K29, K28, K27, K26, K25, K24, K23, K22, K21, K2E, \ - K3D, K3C, K3B, K3A, K39, K38, K37, K36, K35, K34, K33, K32, K30, K3E, \ - K4D, K4C, K4B, K48, K44, K43, K42, K40, K4E \ -){ \ - { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ - { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ - { _x_, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ - { K30, _x_, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ - { K40, _x_, K42, K43, K44, _x_, _x_, _x_, K48, _x_, _x_, K4B, K4C, K4D, K4E } \ -} - -#define LAYOUT LAYOUT_65_ansi_blocker // added to not break existing checked in keymaps -#define LAYOUT_iso LAYOUT_65_iso_blocker diff --git a/keyboards/percent/canoe/config.h b/keyboards/percent/canoe/config.h index 69f53905fc..b7aa6ca2e9 100644 --- a/keyboards/percent/canoe/config.h +++ b/keyboards/percent/canoe/config.h @@ -20,11 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define RGBLED_NUM 2 -#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4 } -#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 } - -#define DIODE_DIRECTION COL2ROW - #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_RAINBOW_MOOD #define RGBLIGHT_EFFECT_RAINBOW_SWIRL diff --git a/keyboards/percent/canoe/info.json b/keyboards/percent/canoe/info.json index 951e55ec64..fcbdf6bac8 100644 --- a/keyboards/percent/canoe/info.json +++ b/keyboards/percent/canoe/info.json @@ -8,21 +8,178 @@ "pid": "0x434E", "device_version": "2.0.0" }, + "matrix_pins": { + "cols": ["A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "C7", "C6", "C5", "C4", "C3", "C2", "D7"], + "rows": ["B0", "B1", "B2", "B3", "B4"] + }, + "diode_direction": "COL2ROW", "backlight": { "pin": "D4" }, + "ws2812": { + "driver": "i2c" + }, "indicators": { "caps_lock": "D1" }, "processor": "atmega32a", "bootloader": "bootloadhid", "community_layouts": ["65_ansi_blocker", "65_iso_blocker"], + "layout_aliases": { + "LAYOUT": "LAYOUT_65_ansi_blocker", + "LAYOUT_iso": "LAYOUT_65_iso_blocker" + }, "layouts": { "LAYOUT_65_iso_blocker": { - "layout": [{"label":"K0D", "x":0, "y":0}, {"label":"K0C", "x":1, "y":0}, {"label":"K0B", "x":2, "y":0}, {"label":"K0A", "x":3, "y":0}, {"label":"K09", "x":4, "y":0}, {"label":"K08", "x":5, "y":0}, {"label":"K07", "x":6, "y":0}, {"label":"K06", "x":7, "y":0}, {"label":"K05", "x":8, "y":0}, {"label":"K04", "x":9, "y":0}, {"label":"K03", "x":10, "y":0}, {"label":"K02", "x":11, "y":0}, {"label":"K01", "x":12, "y":0}, {"label":"K00", "x":13, "y":0, "w":2}, {"label":"K0E", "x":15, "y":0}, {"label":"K1D", "x":0, "y":1, "w":1.5}, {"label":"K1C", "x":1.5, "y":1}, {"label":"K1B", "x":2.5, "y":1}, {"label":"K1A", "x":3.5, "y":1}, {"label":"K19", "x":4.5, "y":1}, {"label":"K18", "x":5.5, "y":1}, {"label":"K17", "x":6.5, "y":1}, {"label":"K16", "x":7.5, "y":1}, {"label":"K15", "x":8.5, "y":1}, {"label":"K14", "x":9.5, "y":1}, {"label":"K13", "x":10.5, "y":1}, {"label":"K12", "x":11.5, "y":1}, {"label":"K11", "x":12.5, "y":1}, {"label":"K1E", "x":15, "y":1}, {"label":"K2D", "x":0, "y":2, "w":1.75}, {"label":"K2C", "x":1.75, "y":2}, {"label":"K2B", "x":2.75, "y":2}, {"label":"K2A", "x":3.75, "y":2}, {"label":"K29", "x":4.75, "y":2}, {"label":"K28", "x":5.75, "y":2}, {"label":"K27", "x":6.75, "y":2}, {"label":"K26", "x":7.75, "y":2}, {"label":"K25", "x":8.75, "y":2}, {"label":"K24", "x":9.75, "y":2}, {"label":"K23", "x":10.75, "y":2}, {"label":"K22", "x":11.75, "y":2}, {"label":"K10", "x":12.75, "y":2}, {"label":"K21", "x":13.75, "y":1, "w":1.25, "h":2}, {"label":"K2E", "x":15, "y":2}, {"label":"K3D", "x":0, "y":3, "w":1.25}, {"label":"K4A", "x":1.25, "y":3}, {"label":"K3C", "x":2.25, "y":3}, {"label":"K3B", "x":3.25, "y":3}, {"label":"K3A", "x":4.25, "y":3}, {"label":"K39", "x":5.25, "y":3}, {"label":"K38", "x":6.25, "y":3}, {"label":"K37", "x":7.25, "y":3}, {"label":"K36", "x":8.25, "y":3}, {"label":"K35", "x":9.25, "y":3}, {"label":"K34", "x":10.25, "y":3}, {"label":"K33", "x":11.25, "y":3}, {"label":"K32", "x":12.25, "y":3, "w":1.75}, {"label":"K30", "x":14, "y":3}, {"label":"K3E", "x":15, "y":3}, {"label":"K4D", "x":0, "y":4, "w":1.25}, {"label":"K4C", "x":1.25, "y":4, "w":1.25}, {"label":"K4B", "x":2.5, "y":4, "w":1.25}, {"label":"K48", "x":3.75, "y":4, "w":6.25}, {"label":"K44", "x":10, "y":4, "w":1.25}, {"label":"K43", "x":11.25, "y":4, "w":1.25}, {"label":"K42", "x":13, "y":4}, {"label":"K40", "x":14, "y":4}, {"label":"K4E", "x":15, "y":4}] + "layout": [ + {"label": "K0D", "matrix": [0, 13], "x": 0, "y": 0}, + {"label": "K0C", "matrix": [0, 12], "x": 1, "y": 0}, + {"label": "K0B", "matrix": [0, 11], "x": 2, "y": 0}, + {"label": "K0A", "matrix": [0, 10], "x": 3, "y": 0}, + {"label": "K09", "matrix": [0, 9], "x": 4, "y": 0}, + {"label": "K08", "matrix": [0, 8], "x": 5, "y": 0}, + {"label": "K07", "matrix": [0, 7], "x": 6, "y": 0}, + {"label": "K06", "matrix": [0, 6], "x": 7, "y": 0}, + {"label": "K05", "matrix": [0, 5], "x": 8, "y": 0}, + {"label": "K04", "matrix": [0, 4], "x": 9, "y": 0}, + {"label": "K03", "matrix": [0, 3], "x": 10, "y": 0}, + {"label": "K02", "matrix": [0, 2], "x": 11, "y": 0}, + {"label": "K01", "matrix": [0, 1], "x": 12, "y": 0}, + {"label": "K00", "matrix": [0, 0], "x": 13, "y": 0, "w": 2}, + {"label": "K0E", "matrix": [0, 14], "x": 15, "y": 0}, + + {"label": "K1D", "matrix": [1, 13], "x": 0, "y": 1, "w": 1.5}, + {"label": "K1C", "matrix": [1, 12], "x": 1.5, "y": 1}, + {"label": "K1B", "matrix": [1, 11], "x": 2.5, "y": 1}, + {"label": "K1A", "matrix": [1, 10], "x": 3.5, "y": 1}, + {"label": "K19", "matrix": [1, 9], "x": 4.5, "y": 1}, + {"label": "K18", "matrix": [1, 8], "x": 5.5, "y": 1}, + {"label": "K17", "matrix": [1, 7], "x": 6.5, "y": 1}, + {"label": "K16", "matrix": [1, 6], "x": 7.5, "y": 1}, + {"label": "K15", "matrix": [1, 5], "x": 8.5, "y": 1}, + {"label": "K14", "matrix": [1, 4], "x": 9.5, "y": 1}, + {"label": "K13", "matrix": [1, 3], "x": 10.5, "y": 1}, + {"label": "K12", "matrix": [1, 2], "x": 11.5, "y": 1}, + {"label": "K11", "matrix": [1, 1], "x": 12.5, "y": 1}, + {"label": "K1E", "matrix": [1, 14], "x": 15, "y": 1}, + + {"label": "K2D", "matrix": [2, 13], "x": 0, "y": 2, "w": 1.75}, + {"label": "K2C", "matrix": [2, 12], "x": 1.75, "y": 2}, + {"label": "K2B", "matrix": [2, 11], "x": 2.75, "y": 2}, + {"label": "K2A", "matrix": [2, 10], "x": 3.75, "y": 2}, + {"label": "K29", "matrix": [2, 9], "x": 4.75, "y": 2}, + {"label": "K28", "matrix": [2, 8], "x": 5.75, "y": 2}, + {"label": "K27", "matrix": [2, 7], "x": 6.75, "y": 2}, + {"label": "K26", "matrix": [2, 6], "x": 7.75, "y": 2}, + {"label": "K25", "matrix": [2, 5], "x": 8.75, "y": 2}, + {"label": "K24", "matrix": [2, 4], "x": 9.75, "y": 2}, + {"label": "K23", "matrix": [2, 3], "x": 10.75, "y": 2}, + {"label": "K22", "matrix": [2, 2], "x": 11.75, "y": 2}, + {"label": "K10", "matrix": [1, 0], "x": 12.75, "y": 2}, + {"label": "K21", "matrix": [2, 1], "x": 13.75, "y": 1, "w": 1.25, "h": 2}, + {"label": "K2E", "matrix": [2, 14], "x": 15, "y": 2}, + + {"label": "K3D", "matrix": [3, 13], "x": 0, "y": 3, "w": 1.25}, + {"label": "K4A", "matrix": [4, 10], "x": 1.25, "y": 3}, + {"label": "K3C", "matrix": [3, 12], "x": 2.25, "y": 3}, + {"label": "K3B", "matrix": [3, 11], "x": 3.25, "y": 3}, + {"label": "K3A", "matrix": [3, 10], "x": 4.25, "y": 3}, + {"label": "K39", "matrix": [3, 9], "x": 5.25, "y": 3}, + {"label": "K38", "matrix": [3, 8], "x": 6.25, "y": 3}, + {"label": "K37", "matrix": [3, 7], "x": 7.25, "y": 3}, + {"label": "K36", "matrix": [3, 6], "x": 8.25, "y": 3}, + {"label": "K35", "matrix": [3, 5], "x": 9.25, "y": 3}, + {"label": "K34", "matrix": [3, 4], "x": 10.25, "y": 3}, + {"label": "K33", "matrix": [3, 3], "x": 11.25, "y": 3}, + {"label": "K32", "matrix": [3, 2], "x": 12.25, "y": 3, "w": 1.75}, + {"label": "K30", "matrix": [3, 0], "x": 14, "y": 3}, + {"label": "K3E", "matrix": [3, 14], "x": 15, "y": 3}, + + {"label": "K4D", "matrix": [4, 13], "x": 0, "y": 4, "w": 1.25}, + {"label": "K4C", "matrix": [4, 12], "x": 1.25, "y": 4, "w": 1.25}, + {"label": "K4B", "matrix": [4, 11], "x": 2.5, "y": 4, "w": 1.25}, + {"label": "K48", "matrix": [4, 8], "x": 3.75, "y": 4, "w": 6.25}, + {"label": "K44", "matrix": [4, 4], "x": 10, "y": 4, "w": 1.25}, + {"label": "K43", "matrix": [4, 3], "x": 11.25, "y": 4, "w": 1.25}, + {"label": "K42", "matrix": [4, 2], "x": 13, "y": 4}, + {"label": "K40", "matrix": [4, 0], "x": 14, "y": 4}, + {"label": "K4E", "matrix": [4, 14], "x": 15, "y": 4} + ] }, "LAYOUT_65_ansi_blocker": { - "layout": [{"label":"K0D", "x":0, "y":0}, {"label":"K0C", "x":1, "y":0}, {"label":"K0B", "x":2, "y":0}, {"label":"K0A", "x":3, "y":0}, {"label":"K09", "x":4, "y":0}, {"label":"K08", "x":5, "y":0}, {"label":"K07", "x":6, "y":0}, {"label":"K06", "x":7, "y":0}, {"label":"K05", "x":8, "y":0}, {"label":"K04", "x":9, "y":0}, {"label":"K03", "x":10, "y":0}, {"label":"K02", "x":11, "y":0}, {"label":"K01", "x":12, "y":0}, {"label":"K00", "x":13, "y":0, "w":2}, {"label":"K0E", "x":15, "y":0}, {"label":"K1D", "x":0, "y":1, "w":1.5}, {"label":"K1C", "x":1.5, "y":1}, {"label":"K1B", "x":2.5, "y":1}, {"label":"K1A", "x":3.5, "y":1}, {"label":"K19", "x":4.5, "y":1}, {"label":"K18", "x":5.5, "y":1}, {"label":"K17", "x":6.5, "y":1}, {"label":"K16", "x":7.5, "y":1}, {"label":"K15", "x":8.5, "y":1}, {"label":"K14", "x":9.5, "y":1}, {"label":"K13", "x":10.5, "y":1}, {"label":"K12", "x":11.5, "y":1}, {"label":"K11", "x":12.5, "y":1}, {"label":"K10", "x":13.5, "y":1, "w":1.5}, {"label":"K1E", "x":15, "y":1}, {"label":"K2D", "x":0, "y":2, "w":1.75}, {"label":"K2C", "x":1.75, "y":2}, {"label":"K2B", "x":2.75, "y":2}, {"label":"K2A", "x":3.75, "y":2}, {"label":"K29", "x":4.75, "y":2}, {"label":"K28", "x":5.75, "y":2}, {"label":"K27", "x":6.75, "y":2}, {"label":"K26", "x":7.75, "y":2}, {"label":"K25", "x":8.75, "y":2}, {"label":"K24", "x":9.75, "y":2}, {"label":"K23", "x":10.75, "y":2}, {"label":"K22", "x":11.75, "y":2}, {"label":"K21", "x":12.75, "y":2, "w":2.25}, {"label":"K2E", "x":15, "y":2}, {"label":"K3D", "x":0, "y":3, "w":2.25}, {"label":"K3C", "x":2.25, "y":3}, {"label":"K3B", "x":3.25, "y":3}, {"label":"K3A", "x":4.25, "y":3}, {"label":"K39", "x":5.25, "y":3}, {"label":"K38", "x":6.25, "y":3}, {"label":"K37", "x":7.25, "y":3}, {"label":"K36", "x":8.25, "y":3}, {"label":"K35", "x":9.25, "y":3}, {"label":"K34", "x":10.25, "y":3}, {"label":"K33", "x":11.25, "y":3}, {"label":"K32", "x":12.25, "y":3, "w":1.75}, {"label":"K30", "x":14, "y":3}, {"label":"K3E", "x":15, "y":3}, {"label":"K4D", "x":0, "y":4, "w":1.25}, {"label":"K4C", "x":1.25, "y":4, "w":1.25}, {"label":"K4B", "x":2.5, "y":4, "w":1.25}, {"label":"K48", "x":3.75, "y":4, "w":6.25}, {"label":"K44", "x":10, "y":4, "w":1.25}, {"label":"K43", "x":11.25, "y":4, "w":1.25}, {"label":"K42", "x":13, "y":4}, {"label":"K40", "x":14, "y":4}, {"label":"K4E", "x":15, "y":4}] + "layout": [ + {"label": "K0D", "matrix": [0, 13], "x": 0, "y": 0}, + {"label": "K0C", "matrix": [0, 12], "x": 1, "y": 0}, + {"label": "K0B", "matrix": [0, 11], "x": 2, "y": 0}, + {"label": "K0A", "matrix": [0, 10], "x": 3, "y": 0}, + {"label": "K09", "matrix": [0, 9], "x": 4, "y": 0}, + {"label": "K08", "matrix": [0, 8], "x": 5, "y": 0}, + {"label": "K07", "matrix": [0, 7], "x": 6, "y": 0}, + {"label": "K06", "matrix": [0, 6], "x": 7, "y": 0}, + {"label": "K05", "matrix": [0, 5], "x": 8, "y": 0}, + {"label": "K04", "matrix": [0, 4], "x": 9, "y": 0}, + {"label": "K03", "matrix": [0, 3], "x": 10, "y": 0}, + {"label": "K02", "matrix": [0, 2], "x": 11, "y": 0}, + {"label": "K01", "matrix": [0, 1], "x": 12, "y": 0}, + {"label": "K00", "matrix": [0, 0], "x": 13, "y": 0, "w": 2}, + {"label": "K0E", "matrix": [0, 14], "x": 15, "y": 0}, + + {"label": "K1D", "matrix": [1, 13], "x": 0, "y": 1, "w": 1.5}, + {"label": "K1C", "matrix": [1, 12], "x": 1.5, "y": 1}, + {"label": "K1B", "matrix": [1, 11], "x": 2.5, "y": 1}, + {"label": "K1A", "matrix": [1, 10], "x": 3.5, "y": 1}, + {"label": "K19", "matrix": [1, 9], "x": 4.5, "y": 1}, + {"label": "K18", "matrix": [1, 8], "x": 5.5, "y": 1}, + {"label": "K17", "matrix": [1, 7], "x": 6.5, "y": 1}, + {"label": "K16", "matrix": [1, 6], "x": 7.5, "y": 1}, + {"label": "K15", "matrix": [1, 5], "x": 8.5, "y": 1}, + {"label": "K14", "matrix": [1, 4], "x": 9.5, "y": 1}, + {"label": "K13", "matrix": [1, 3], "x": 10.5, "y": 1}, + {"label": "K12", "matrix": [1, 2], "x": 11.5, "y": 1}, + {"label": "K11", "matrix": [1, 1], "x": 12.5, "y": 1}, + {"label": "K10", "matrix": [1, 0], "x": 13.5, "y": 1, "w": 1.5}, + {"label": "K1E", "matrix": [1, 14], "x": 15, "y": 1}, + + {"label": "K2D", "matrix": [2, 13], "x": 0, "y": 2, "w": 1.75}, + {"label": "K2C", "matrix": [2, 12], "x": 1.75, "y": 2}, + {"label": "K2B", "matrix": [2, 11], "x": 2.75, "y": 2}, + {"label": "K2A", "matrix": [2, 10], "x": 3.75, "y": 2}, + {"label": "K29", "matrix": [2, 9], "x": 4.75, "y": 2}, + {"label": "K28", "matrix": [2, 8], "x": 5.75, "y": 2}, + {"label": "K27", "matrix": [2, 7], "x": 6.75, "y": 2}, + {"label": "K26", "matrix": [2, 6], "x": 7.75, "y": 2}, + {"label": "K25", "matrix": [2, 5], "x": 8.75, "y": 2}, + {"label": "K24", "matrix": [2, 4], "x": 9.75, "y": 2}, + {"label": "K23", "matrix": [2, 3], "x": 10.75, "y": 2}, + {"label": "K22", "matrix": [2, 2], "x": 11.75, "y": 2}, + {"label": "K21", "matrix": [2, 1], "x": 12.75, "y": 2, "w": 2.25}, + {"label": "K2E", "matrix": [2, 14], "x": 15, "y": 2}, + + {"label": "K3D", "matrix": [3, 13], "x": 0, "y": 3, "w": 2.25}, + {"label": "K3C", "matrix": [3, 12], "x": 2.25, "y": 3}, + {"label": "K3B", "matrix": [3, 11], "x": 3.25, "y": 3}, + {"label": "K3A", "matrix": [3, 10], "x": 4.25, "y": 3}, + {"label": "K39", "matrix": [3, 9], "x": 5.25, "y": 3}, + {"label": "K38", "matrix": [3, 8], "x": 6.25, "y": 3}, + {"label": "K37", "matrix": [3, 7], "x": 7.25, "y": 3}, + {"label": "K36", "matrix": [3, 6], "x": 8.25, "y": 3}, + {"label": "K35", "matrix": [3, 5], "x": 9.25, "y": 3}, + {"label": "K34", "matrix": [3, 4], "x": 10.25, "y": 3}, + {"label": "K33", "matrix": [3, 3], "x": 11.25, "y": 3}, + {"label": "K32", "matrix": [3, 2], "x": 12.25, "y": 3, "w": 1.75}, + {"label": "K30", "matrix": [3, 0], "x": 14, "y": 3}, + {"label": "K3E", "matrix": [3, 14], "x": 15, "y": 3}, + + {"label": "K4D", "matrix": [4, 13], "x": 0, "y": 4, "w": 1.25}, + {"label": "K4C", "matrix": [4, 12], "x": 1.25, "y": 4, "w": 1.25}, + {"label": "K4B", "matrix": [4, 11], "x": 2.5, "y": 4, "w": 1.25}, + {"label": "K48", "matrix": [4, 8], "x": 3.75, "y": 4, "w": 6.25}, + {"label": "K44", "matrix": [4, 4], "x": 10, "y": 4, "w": 1.25}, + {"label": "K43", "matrix": [4, 3], "x": 11.25, "y": 4, "w": 1.25}, + {"label": "K42", "matrix": [4, 2], "x": 13, "y": 4}, + {"label": "K40", "matrix": [4, 0], "x": 14, "y": 4}, + {"label": "K4E", "matrix": [4, 14], "x": 15, "y": 4} + ] } } } diff --git a/keyboards/percent/canoe/rules.mk b/keyboards/percent/canoe/rules.mk index 25437c442c..6b0cec85a4 100644 --- a/keyboards/percent/canoe/rules.mk +++ b/keyboards/percent/canoe/rules.mk @@ -8,4 +8,3 @@ CONSOLE_ENABLE = no COMMAND_ENABLE = yes BACKLIGHT_ENABLE = yes RGBLIGHT_ENABLE = yes -WS2812_DRIVER = i2c diff --git a/keyboards/percent/canoe_gen2/canoe_gen2.c b/keyboards/percent/canoe_gen2/canoe_gen2.c index 47ade5dd4f..e5beff54a3 100644 --- a/keyboards/percent/canoe_gen2/canoe_gen2.c +++ b/keyboards/percent/canoe_gen2/canoe_gen2.c @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "canoe_gen2.h" +#include "quantum.h" void keyboard_pre_init_kb(void) { setPinOutput(E6); diff --git a/keyboards/percent/canoe_gen2/canoe_gen2.h b/keyboards/percent/canoe_gen2/canoe_gen2.h deleted file mode 100644 index d4582eef25..0000000000 --- a/keyboards/percent/canoe_gen2/canoe_gen2.h +++ /dev/null @@ -1,54 +0,0 @@ -/* -Copyright 2020 Evy Dekkers - -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 -#include "quantum.h" - -// readability -#define ___ KC_NO - -#define LAYOUT_all LAYOUT_65_iso_blocker_split_bs - -#define LAYOUT_65_ansi_blocker_split_bs( \ - k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k1d, k0d, k0e, \ - k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k2c, k1e, \ - k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2d, k2e, \ - k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, \ - k40, k41, k42, k46, k49, k4a, k4c, k4d, k4e \ -) \ -{ \ - {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e}, \ - {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e}, \ - {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e}, \ - {k30, ___, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e}, \ - {k40, k41, k42, ___, ___, ___, k46, ___, ___, k49, k4a, ___, k4c, k4d, k4e} \ -} - -#define LAYOUT_65_iso_blocker_split_bs( \ - k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k1d, k0d, k0e, \ - k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \ - k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e, \ - k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, \ - k40, k41, k42, k46, k49, k4a, k4c, k4d, k4e \ -) \ -{ \ - {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e}, \ - {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e}, \ - {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e}, \ - {k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e}, \ - {k40, k41, k42, ___, ___, ___, k46, ___, ___, k49, k4a, ___, k4c, k4d, k4e} \ -} diff --git a/keyboards/percent/canoe_gen2/config.h b/keyboards/percent/canoe_gen2/config.h index 7138fe3939..fe374cd794 100644 --- a/keyboards/percent/canoe_gen2/config.h +++ b/keyboards/percent/canoe_gen2/config.h @@ -17,15 +17,6 @@ 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 {B1,B3,B2,F5,F4} -#define MATRIX_COL_PINS {B0,D0,C6,B6,B5,B4,D7,D6,D4,D5,D3,D2,D1,F6,F7} - -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE /* Locking resynchronize hack */ @@ -33,7 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* Backlight configuration */ -#define RGB_DI_PIN B7 #define RGB_MATRIX_LED_COUNT 77 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 diff --git a/keyboards/percent/canoe_gen2/info.json b/keyboards/percent/canoe_gen2/info.json index e84a835991..0f64915a2a 100644 --- a/keyboards/percent/canoe_gen2/info.json +++ b/keyboards/percent/canoe_gen2/info.json @@ -8,161 +8,172 @@ "pid": "0x89F0", "device_version": "0.0.1" }, + "ws2812": { + "pin": "B7" + }, + "matrix_pins": { + "cols": ["B0", "D0", "C6", "B6", "B5", "B4", "D7", "D6", "D4", "D5", "D3", "D2", "D1", "F6", "F7"], + "rows": ["B1", "B3", "B2", "F5", "F4"] + }, + "diode_direction": "COL2ROW", "processor": "atmega32u4", "bootloader": "atmel-dfu", "community_layouts": ["65_ansi_blocker_split_bs", "65_iso_blocker_split_bs"], + "layout_aliases": { + "LAYOUT_all": "LAYOUT_65_iso_blocker_split_bs" + }, "layouts": { "LAYOUT_65_ansi_blocker_split_bs": { "layout": [ - {"x":0, "y":0}, - {"x":1, "y":0}, - {"x":2, "y":0}, - {"x":3, "y":0}, - {"x":4, "y":0}, - {"x":5, "y":0}, - {"x":6, "y":0}, - {"x":7, "y":0}, - {"x":8, "y":0}, - {"x":9, "y":0}, - {"x":10, "y":0}, - {"x":11, "y":0}, - {"x":12, "y":0}, - {"x":13, "y":0}, - {"x":14, "y":0}, - {"x":15, "y":0}, - - {"x":0, "y":1, "w":1.5}, - {"x":1.5, "y":1}, - {"x":2.5, "y":1}, - {"x":3.5, "y":1}, - {"x":4.5, "y":1}, - {"x":5.5, "y":1}, - {"x":6.5, "y":1}, - {"x":7.5, "y":1}, - {"x":8.5, "y":1}, - {"x":9.5, "y":1}, - {"x":10.5, "y":1}, - {"x":11.5, "y":1}, - {"x":12.5, "y":1}, - {"x":13.5, "y":1, "w":1.5}, - {"x":15, "y":1}, - - {"x":0, "y":2, "w":1.75}, - {"x":1.75, "y":2}, - {"x":2.75, "y":2}, - {"x":3.75, "y":2}, - {"x":4.75, "y":2}, - {"x":5.75, "y":2}, - {"x":6.75, "y":2}, - {"x":7.75, "y":2}, - {"x":8.75, "y":2}, - {"x":9.75, "y":2}, - {"x":10.75, "y":2}, - {"x":11.75, "y":2}, - {"x":12.75, "y":2, "w":2.25}, - {"x":15, "y":2}, - - {"x":0, "y":3, "w":2.25}, - {"x":2.25, "y":3}, - {"x":3.25, "y":3}, - {"x":4.25, "y":3}, - {"x":5.25, "y":3}, - {"x":6.25, "y":3}, - {"x":7.25, "y":3}, - {"x":8.25, "y":3}, - {"x":9.25, "y":3}, - {"x":10.25, "y":3}, - {"x":11.25, "y":3}, - {"x":12.25, "y":3, "w":1.75}, - {"x":14, "y":3}, - {"x":15, "y":3}, - - {"x":0, "y":4, "w":1.25}, - {"x":1.25, "y":4, "w":1.25}, - {"x":2.5, "y":4, "w":1.25}, - {"x":3.75, "y":4, "w":6.25}, - {"x":10, "y":4, "w":1.25}, - {"x":11.25, "y":4, "w":1.25}, - {"x":13, "y":4}, - {"x":14, "y":4}, - {"x":15, "y":4} + {"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": [0, 10], "x": 10, "y": 0}, + {"matrix": [0, 11], "x": 11, "y": 0}, + {"matrix": [0, 12], "x": 12, "y": 0}, + {"matrix": [1, 13], "x": 13, "y": 0}, + {"matrix": [0, 13], "x": 14, "y": 0}, + {"matrix": [0, 14], "x": 15, "y": 0}, + + {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.5}, + {"matrix": [1, 1], "x": 1.5, "y": 1}, + {"matrix": [1, 2], "x": 2.5, "y": 1}, + |