[Keyboard] boardsource/beiwagon data driven (#17631)
parent
5a126e1a74
commit
b99ccd4f06
@ -1,38 +0,0 @@
|
||||
/* Copyright 2020 Boardsource
|
||||
*
|
||||
* 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 "beiwagon.h"
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
led_config_t g_led_config = { {
|
||||
{7,8,9},
|
||||
{10,11,12},
|
||||
{13,14,15},
|
||||
{16,17,18}
|
||||
}, {
|
||||
{2, 0}, {1, 0}, {0, 0},
|
||||
{2, 1}, {1, 1}, {0, 1},
|
||||
{2, 2}, {1, 2}, {0, 2},
|
||||
{2, 3}, {1, 3}, {0, 3},
|
||||
}, {
|
||||
2, 2, 2, 2, 2, 2,
|
||||
1, 1, 1,
|
||||
1, 4, 1,
|
||||
1, 4, 1,
|
||||
1, 1, 1
|
||||
|
||||
} };
|
||||
#endif
|
||||
|
||||
@ -1,32 +0,0 @@
|
||||
/* Copyright 2020 Boardsource
|
||||
*
|
||||
* 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( \
|
||||
K00, K01, K02, \
|
||||
K10, K11, K12, \
|
||||
K20, K21, K22, \
|
||||
K30, K31, K32\
|
||||
) { \
|
||||
{K00, K01, K02 }, \
|
||||
{K10, K11, K12 }, \
|
||||
{K20, K21, K22 }, \
|
||||
{K30, K31, K32 } \
|
||||
}
|
||||
|
||||
@ -1,26 +1,64 @@
|
||||
{
|
||||
"keyboard_name": "Beiwagon",
|
||||
"url": "",
|
||||
"maintainer": "Boardsource",
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{ "label": "k00", "x": 0, "y": 0 },
|
||||
{ "label": "k01", "x": 1, "y": 0 },
|
||||
{ "label": "k02", "x": 2, "y": 0 },
|
||||
|
||||
{ "label": "k10", "x": 0, "y": 1 },
|
||||
{ "label": "k11", "x": 1, "y": 1 },
|
||||
{ "label": "k12", "x": 2, "y": 1 },
|
||||
|
||||
{ "label": "k20", "x": 0, "y": 2 },
|
||||
{ "label": "k21", "x": 1, "y": 2 },
|
||||
{ "label": "k22", "x": 2, "y": 2 },
|
||||
|
||||
{ "label": "k30", "x": 0, "y": 3 },
|
||||
{ "label": "k31", "x": 1, "y": 3 },
|
||||
{ "label": "k32", "x": 2, "y": 3 }
|
||||
]
|
||||
}
|
||||
"manufacturer": "Boardsource",
|
||||
"keyboard_name": "Beiwagon",
|
||||
"maintainer": "waffle87",
|
||||
"bootloader": "atmel-dfu",
|
||||
"diode_direction": "COL2ROW",
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"extrakey": true,
|
||||
"mousekey": false,
|
||||
"rgb_matrix": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B5", "B6", "B7"],
|
||||
"rows": ["B0", "B1", "B2", "B3"]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"url": "https://boardsource.xyz/store/5ffbfe2ab855550844cab109",
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x0066",
|
||||
"vid": "0x4273"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"layout": [
|
||||
{ "flags": 2, "x": 16, "y": 38 },
|
||||
{ "flags": 2, "x": 16, "y": 113 },
|
||||
{ "flags": 2, "x": 16, "y": 188 },
|
||||
{ "flags": 2, "x": 48, "y": 38 },
|
||||
{ "flags": 2, "x": 48, "y": 113 },
|
||||
{ "flags": 2, "x": 48, "y": 188 },
|
||||
{ "flags": 4, "matrix": [0, 0], "x": 0, "y": 0 },
|
||||
{ "flags": 4, "matrix": [0, 1], "x": 32, "y": 0 },
|
||||
{ "flags": 4, "matrix": [0, 2], "x": 64, "y": 0 },
|
||||
{ "flags": 4, "matrix": [1, 0], "x": 0, "y": 75 },
|
||||
{ "flags": 4, "matrix": [1, 1], "x": 32, "y": 75 },
|
||||
{ "flags": 4, "matrix": [1, 2], "x": 64, "y": 75 },
|
||||
{ "flags": 4, "matrix": [2, 0], "x": 0, "y": 150 },
|
||||
{ "flags": 4, "matrix": [2, 1], "x": 32, "y": 150 },
|
||||
{ "flags": 4, "matrix": [2, 2], "x": 64, "y": 150 },
|
||||
{ "flags": 4, "matrix": [3, 0], "x": 0, "y": 224 },
|
||||
{ "flags": 4, "matrix": [3, 1], "x": 32, "y": 224 },
|
||||
{ "flags": 4, "matrix": [3, 2], "x": 64, "y": 224 }
|
||||
]
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{ "matrix": [0, 0], "x": 0, "y": 0 },
|
||||
{ "matrix": [0, 1], "x": 1, "y": 0 },
|
||||
{ "matrix": [0, 2], "x": 2, "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": [3, 0], "x": 0, "y": 2 },
|
||||
{ "matrix": [3, 1], "x": 1, "y": 2 },
|
||||
{ "matrix": [3, 2], "x": 2, "y": 2 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1 +0,0 @@
|
||||
# The default keymap for Beiwagon
|
||||
@ -1 +0,0 @@
|
||||
# The via keymap for Beiwagon
|
||||
@ -1,20 +1 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
EXTRAKEY_ENABLE = no # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = WS2812
|
||||
|
||||
Loading…
Reference in New Issue