diff options
| author | jack <jack@pngu.org> | 2025-04-22 21:06:17 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-23 04:06:17 +0100 |
| commit | 5ea7283159c7004cd3096534e5b7ebd8d477fc50 (patch) | |
| tree | 23ba182a20cc68dbc5e8cadbe2aeeb135915669b /keyboards | |
| parent | acedfc3fcb68ec2e46d4abb7820ab59605cfb741 (diff) | |
Fix `boardsource/beiwagon` RGB Matrix coordinates (#25018)
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/boardsource/beiwagon/keyboard.json | 36 | ||||
| -rw-r--r-- | keyboards/boardsource/beiwagon/keymaps/default/keymap.c | 40 | ||||
| -rw-r--r-- | keyboards/boardsource/beiwagon/keymaps/default/keymap.json | 19 |
3 files changed, 37 insertions, 58 deletions
diff --git a/keyboards/boardsource/beiwagon/keyboard.json b/keyboards/boardsource/beiwagon/keyboard.json index 39a9006b85..0bfa159a8a 100644 --- a/keyboards/boardsource/beiwagon/keyboard.json +++ b/keyboards/boardsource/beiwagon/keyboard.json | |||
| @@ -61,24 +61,24 @@ | |||
| 61 | }, | 61 | }, |
| 62 | "driver": "ws2812", | 62 | "driver": "ws2812", |
| 63 | "layout": [ | 63 | "layout": [ |
| 64 | {"flags": 2, "x": 16, "y": 38}, | 64 | {"x": 200, "y": 11, "flags": 2}, |
| 65 | {"flags": 2, "x": 16, "y": 113}, | 65 | {"x": 200, "y": 32, "flags": 2}, |
| 66 | {"flags": 2, "x": 16, "y": 188}, | 66 | {"x": 200, "y": 52, "flags": 2}, |
| 67 | {"flags": 2, "x": 48, "y": 38}, | 67 | {"x": 24, "y": 52, "flags": 2}, |
| 68 | {"flags": 2, "x": 48, "y": 113}, | 68 | {"x": 24, "y": 32, "flags": 2}, |
| 69 | {"flags": 2, "x": 48, "y": 188}, | 69 | {"x": 24, "y": 11, "flags": 2}, |
| 70 | {"flags": 4, "matrix": [0, 0], "x": 0, "y": 0}, | 70 | {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4}, |
| 71 | {"flags": 4, "matrix": [0, 1], "x": 32, "y": 0}, | 71 | {"matrix": [0, 1], "x": 112, "y": 0, "flags": 4}, |
| 72 | {"flags": 4, "matrix": [0, 2], "x": 64, "y": 0}, | 72 | {"matrix": [0, 2], "x": 224, "y": 0, "flags": 4}, |
| 73 | {"flags": 4, "matrix": [1, 0], "x": 0, "y": 75}, | 73 | {"matrix": [1, 0], "x": 0, "y": 21, "flags": 4}, |
| 74 | {"flags": 4, "matrix": [1, 1], "x": 32, "y": 75}, | 74 | {"matrix": [1, 1], "x": 112, "y": 21, "flags": 4}, |
| 75 | {"flags": 4, "matrix": [1, 2], "x": 64, "y": 75}, | 75 | {"matrix": [1, 2], "x": 224, "y": 21, "flags": 4}, |
| 76 | {"flags": 4, "matrix": [2, 0], "x": 0, "y": 150}, | 76 | {"matrix": [2, 0], "x": 0, "y": 42, "flags": 4}, |
| 77 | {"flags": 4, "matrix": [2, 1], "x": 32, "y": 150}, | 77 | {"matrix": [2, 1], "x": 112, "y": 42, "flags": 4}, |
| 78 | {"flags": 4, "matrix": [2, 2], "x": 64, "y": 150}, | 78 | {"matrix": [2, 2], "x": 224, "y": 42, "flags": 4}, |
| 79 | {"flags": 4, "matrix": [3, 0], "x": 0, "y": 224}, | 79 | {"matrix": [3, 0], "x": 0, "y": 64, "flags": 4}, |
| 80 | {"flags": 4, "matrix": [3, 1], "x": 32, "y": 224}, | 80 | {"matrix": [3, 1], "x": 112, "y": 64, "flags": 4}, |
| 81 | {"flags": 4, "matrix": [3, 2], "x": 64, "y": 224} | 81 | {"matrix": [3, 2], "x": 224, "y": 64, "flags": 4} |
| 82 | ] | 82 | ] |
| 83 | }, | 83 | }, |
| 84 | "layouts": { | 84 | "layouts": { |
diff --git a/keyboards/boardsource/beiwagon/keymaps/default/keymap.c b/keyboards/boardsource/beiwagon/keymaps/default/keymap.c deleted file mode 100644 index 4f799550e1..0000000000 --- a/keyboards/boardsource/beiwagon/keymaps/default/keymap.c +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | /* Copyright 2022 Boardsource | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum layers { | ||
| 20 | _MAIN, | ||
| 21 | _RAISE | ||
| 22 | }; | ||
| 23 | |||
| 24 | #define LOWER MO(_LOWER) | ||
| 25 | #define RAISE MO(_RAISE) | ||
| 26 | |||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 28 | [_MAIN] = LAYOUT( | ||
| 29 | KC_7, KC_8, KC_9, | ||
| 30 | KC_4, KC_5, KC_6, | ||
| 31 | KC_1, KC_2, KC_3, | ||
| 32 | KC_0, KC_PENT,RAISE | ||
| 33 | ), | ||
| 34 | [_RAISE] = LAYOUT( | ||
| 35 | KC_7, KC_8, RM_TOGG, | ||
| 36 | KC_4, KC_5, RM_NEXT, | ||
| 37 | KC_1, KC_2, KC_3, | ||
| 38 | KC_0, KC_PENT,_______ | ||
| 39 | ) | ||
| 40 | }; | ||
diff --git a/keyboards/boardsource/beiwagon/keymaps/default/keymap.json b/keyboards/boardsource/beiwagon/keymaps/default/keymap.json new file mode 100644 index 0000000000..b6ba14a076 --- /dev/null +++ b/keyboards/boardsource/beiwagon/keymaps/default/keymap.json | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | { | ||
| 2 | "keyboard": "boardsource/beiwagon", | ||
| 3 | "keymap": "default", | ||
| 4 | "layout": "LAYOUT", | ||
| 5 | "layers": [ | ||
| 6 | [ | ||
| 7 | "KC_7", "KC_8", "KC_9", | ||
| 8 | "KC_4", "KC_5", "KC_6", | ||
| 9 | "KC_1", "KC_2", "KC_3", | ||
| 10 | "KC_0", "KC_PENT", "MO(1)" | ||
| 11 | ], | ||
| 12 | [ | ||
| 13 | "QK_BOOT", "_______", "RM_TOGG", | ||
| 14 | "_______", "_______", "RM_NEXT", | ||
| 15 | "_______", "_______", "_______", | ||
| 16 | "_______", "_______", "_______" | ||
| 17 | ] | ||
| 18 | ] | ||
| 19 | } | ||
