[Keyboard] boardsource/microdox data driven (#17675)
parent
e8b14a52de
commit
59c7b15b4d
@ -1,83 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2020 Cole Smith <cole@boadsource.xyz>
|
|
||||||
|
|
||||||
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 "config_common.h"
|
|
||||||
|
|
||||||
#define VENDOR_ID 0xF7E0
|
|
||||||
#define PRODUCT_ID 0x0412
|
|
||||||
#define DEVICE_VER 0x0000
|
|
||||||
#define MANUFACTURER Boardsource
|
|
||||||
#define PRODUCT microdox
|
|
||||||
|
|
||||||
/* key matrix size */
|
|
||||||
// Rows are doubled-up
|
|
||||||
#define MATRIX_ROWS 8
|
|
||||||
#define MATRIX_COLS 5
|
|
||||||
#define MATRIX_ROW_PINS \
|
|
||||||
{ B2, B6, B4, B5 }
|
|
||||||
|
|
||||||
// wiring of each half
|
|
||||||
#define MATRIX_COL_PINS \
|
|
||||||
{ F4, F5, F6, F7, B1 }
|
|
||||||
#define USE_SERIAL
|
|
||||||
#define SOFT_SERIAL_PIN D2
|
|
||||||
/* define if matrix has ghost */
|
|
||||||
//#define MATRIX_HAS_GHOST
|
|
||||||
|
|
||||||
/* number of backlight levels */
|
|
||||||
// #define BACKLIGHT_LEVELS 3
|
|
||||||
|
|
||||||
/* Set 0 if debouncing isn't needed */
|
|
||||||
#define DEBOUNCE 5
|
|
||||||
|
|
||||||
/* COL2ROW, 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 */
|
|
||||||
//#define LOCKING_RESYNC_ENABLE
|
|
||||||
|
|
||||||
/* ws2812 RGB LED */
|
|
||||||
#define RGB_DI_PIN D3
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
|
||||||
# define RGBLED_NUM 12 // Number of LEDs
|
|
||||||
# define RGBLED_SPLIT \
|
|
||||||
{ 6, 6 }
|
|
||||||
# define RGBLIGHT_EFFECT_BREATHING
|
|
||||||
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
|
||||||
# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Feature disable options
|
|
||||||
* These options are also useful to firmware size reduction.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* disable debug print */
|
|
||||||
// #define NO_DEBUG
|
|
||||||
|
|
||||||
/* disable print */
|
|
||||||
// #define NO_PRINT
|
|
||||||
|
|
||||||
/* disable action features */
|
|
||||||
//#define NO_ACTION_LAYER
|
|
||||||
//#define NO_ACTION_TAPPING
|
|
||||||
//#define NO_ACTION_ONESHOT
|
|
||||||
@ -1 +0,0 @@
|
|||||||
OLED_ENABLE = yes
|
|
||||||
@ -1,38 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2020 Cole Smith <cole@boadsource.xyz>
|
|
||||||
|
|
||||||
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 xxx KC_NO
|
|
||||||
|
|
||||||
#define LAYOUT_split_3x5_3(\
|
|
||||||
k00, k01, k02, k03, k04, k44, k43, k42, k41, k40, \
|
|
||||||
k10, k11, k12, k13, k14, k54, k53, k52, k51, k50, \
|
|
||||||
k20, k21, k22, k23, k24, k64, k63, k62, k61, k60, \
|
|
||||||
k32, k33, k34, k74, k73, k72 \
|
|
||||||
) \
|
|
||||||
{ \
|
|
||||||
{ k00, k01, k02, k03, k04 }, \
|
|
||||||
{ k10, k11, k12, k13, k14 }, \
|
|
||||||
{ k20, k21, k22, k23, k24 }, \
|
|
||||||
{ xxx, xxx, k32, k33, k34 }, \
|
|
||||||
{ k40, k41, k42, k43, k44 }, \
|
|
||||||
{ k50, k51, k52, k53, k54 }, \
|
|
||||||
{ k60, k61, k62, k63, k64 }, \
|
|
||||||
{ xxx, xxx, k72, k73, k74 } \
|
|
||||||
}
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
# MCU name
|
|
||||||
MCU = atmega32u4
|
|
||||||
|
|
||||||
# Bootloader selection
|
|
||||||
BOOTLOADER = caterina
|
|
||||||
|
|
||||||
# Build Options
|
|
||||||
# change yes to no to disable
|
|
||||||
#
|
|
||||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
|
||||||
MOUSEKEY_ENABLE = no # Mouse keys
|
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
|
||||||
NKRO_ENABLE = yes # Enable N-Key Rollover
|
|
||||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
|
||||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
|
||||||
AUDIO_ENABLE = no # Audio output
|
|
||||||
SPLIT_KEYBOARD = yes
|
|
||||||
|
|
||||||
LAYOUTS = split_3x5_3
|
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright 2022 jack (@waffle87)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Feature disable options
|
||||||
|
* These options are also useful to firmware size reduction.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* disable debug print */
|
||||||
|
//#define NO_DEBUG
|
||||||
|
|
||||||
|
/* disable print */
|
||||||
|
//#define NO_PRINT
|
||||||
|
|
||||||
|
/* disable action features */
|
||||||
|
//#define NO_ACTION_LAYER
|
||||||
|
//#define NO_ACTION_TAPPING
|
||||||
|
//#define NO_ACTION_ONESHOT
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"features": {
|
||||||
|
"rgblight": true
|
||||||
|
},
|
||||||
|
"matrix_pins": {
|
||||||
|
"cols": ["F4", "F5", "F6", "F7", "B1"],
|
||||||
|
"rows": ["B2", "B6", "B4", "B5"]
|
||||||
|
},
|
||||||
|
"usb": {
|
||||||
|
"device_version": "1.0.0"
|
||||||
|
},
|
||||||
|
"split": {
|
||||||
|
"soft_serial_pin": "D2"
|
||||||
|
},
|
||||||
|
"rgblight": {
|
||||||
|
"pin": "D3",
|
||||||
|
"sleep": true,
|
||||||
|
"led_count": 12,
|
||||||
|
"split_count": [6, 6],
|
||||||
|
"max_brightness": 150,
|
||||||
|
"animations": {
|
||||||
|
"all": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
# This file intentionally left blank
|
||||||
@ -0,0 +1,82 @@
|
|||||||
|
{
|
||||||
|
"features": {
|
||||||
|
"rgb_matrix": true
|
||||||
|
},
|
||||||
|
"matrix_pins": {
|
||||||
|
"cols": ["D4", "D7", "B3", "F7", "F6"],
|
||||||
|
"rows": ["F4", "D2", "C6", "B1"]
|
||||||
|
},
|
||||||
|
"usb": {
|
||||||
|
"device_version": "2.0.0"
|
||||||
|
},
|
||||||
|
"encoder": {
|
||||||
|
"enabled": true,
|
||||||
|
"rotary": [
|
||||||
|
{ "pin_a": "E6", "pin_b": "B2"}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"split": {
|
||||||
|
"soft_serial_pin": "D3",
|
||||||
|
"matrix_pins": {
|
||||||
|
"right": {
|
||||||
|
"cols": ["F4", "B1", "D7", "C6", "B3"],
|
||||||
|
"rows": ["F5", "F7", "F6", "E6"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"encoder": {
|
||||||
|
"right": {
|
||||||
|
"rotary": [
|
||||||
|
{ "pin_a": "B6", "pin_b": "B2" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rgb_matrix": {
|
||||||
|
"layout": [
|
||||||
|
{ "flags": 2, "x": 12, "y": 11 },
|
||||||
|
{ "flags": 2, "x": 86, "y": 11 },
|
||||||
|
{ "flags": 2, "x": 86, "y": 53 },
|
||||||
|
{ "flags": 2, "x": 0, "y": 64 },
|
||||||
|
{ "flags": 2, "x": 211, "y": 11 },
|
||||||
|
{ "flags": 2, "x": 136, "y": 11 },
|
||||||
|
{ "flags": 2, "x": 136, "y": 53 },
|
||||||
|
{ "flags": 2, "x": 224, "y": 64 },
|
||||||
|
{ "flags": 4, "matrix": [0, 0], "x": 0, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [0, 1], "x": 24, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [0, 2], "x": 49, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [0, 3], "x": 74, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [0, 4], "x": 99, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [4, 4], "x": 124, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [4, 3], "x": 149, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [4, 2], "x": 174, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [4, 1], "x": 199, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [4, 0], "x": 224, "y": 0 },
|
||||||
|
{ "flags": 4, "matrix": [1, 0], "x": 0, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [1, 1], "x": 24, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [1, 2], "x": 49, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [1, 3], "x": 74, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [1, 4], "x": 99, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [5, 4], "x": 124, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [5, 3], "x": 149, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [5, 2], "x": 174, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [5, 1], "x": 199, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [5, 0], "x": 224, "y": 21 },
|
||||||
|
{ "flags": 4, "matrix": [2, 0], "x": 0, "y": 42 },
|
||||||
|
{ "flags": 4, "matrix": [2, 1], "x": 24, "y": 42 },
|
||||||
|
{ "flags": 4, "matrix": [2, 2], "x": 49, "y": 42 },
|
||||||
|
{ "flags": 4, "matrix": [2, 3], "x": 74, "y": 42 },
|
||||||
|
{ "flags": 4, "matrix": [2, 4], "x": 99, "y": 42 },
|
||||||
|
{ "flags": 4, "matrix": [6, 4], "x": 124, "y": 42 },
|
||||||
|
{ "flags": 4, "matrix": [6, 3], "x": 149, "y": 42 },
|
||||||
|
{ "flags": 4, "matrix": [6, 2], "x": 174, "y": 42 },
|
||||||
|
{ "flags": 4, "matrix": [6, 1], "x": 199, "y": 42 },
|
||||||
|
{ "flags": 4, "matrix": [6, 0], "x": 224, "y": 42 },
|
||||||
|
{ "flags": 1, "matrix": [3, 2], "x": 49, "y": 64 },
|
||||||
|
{ "flags": 1, "matrix": [3, 3], "x": 74, "y": 64 },
|
||||||
|
{ "flags": 1, "matrix": [3, 4], "x": 99, "y": 64 },
|
||||||
|
{ "flags": 1, "matrix": [7, 4], "x": 124, "y": 64 },
|
||||||
|
{ "flags": 1, "matrix": [7, 3], "x": 149, "y": 64 },
|
||||||
|
{ "flags": 1, "matrix": [7, 2], "x": 174, "y": 64 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,62 +0,0 @@
|
|||||||
// Copyright 2022 jack (@waffle87)
|
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
#include "v2.h"
|
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
|
||||||
led_config_t g_led_config = {
|
|
||||||
{
|
|
||||||
{ 13, 14, 15, 16, 17 },
|
|
||||||
{ 12, 11, 10, 9, 8 },
|
|
||||||
{ 3, 4, 5, 6, 7 },
|
|
||||||
{ NO_LED, NO_LED, 2, 1, 0 },
|
|
||||||
//18-21 left underglow
|
|
||||||
{ 35, 36, 37, 38, 39 },
|
|
||||||
{ 34, 33, 32, 31, 30 },
|
|
||||||
{ 25, 26, 27, 28, 29 },
|
|
||||||
{ NO_LED, NO_LED, 24, 23, 22 }
|
|
||||||
//40-44 right underglow
|
|
||||||
}, {
|
|
||||||
{99,64}, {74,64}, {49,64}, //0-2
|
|
||||||
{0,42}, {24,42}, {49,42}, {74,42}, {99,42}, //3-7
|
|
||||||
{99,21}, {74,21}, {49,21}, {24,21}, {0,21}, //8-12
|
|
||||||
{0,0}, {24,0}, {49,0}, {74,0}, {99,0}, //13-17
|
|
||||||
{12,11}, {86,11}, {86,53}, {0,64}, //18-21
|
|
||||||
{124,64}, {149,64}, {174,64}, //22-24
|
|
||||||
{224,42}, {199,42}, {174,42}, {149,42}, {124,42}, //25-29
|
|
||||||
{124,21}, {149,21}, {174,21}, {199,21}, {224,21}, //30-34
|
|
||||||
{224,0}, {199,0}, {174,0}, {149,0}, {124,0}, //35-39
|
|
||||||
{211,11}, {136,11}, {136,53}, {224,64} //40-44
|
|
||||||
}, {
|
|
||||||
1, 1, 1,
|
|
||||||
4, 4, 4, 4, 4,
|
|
||||||
4, 4, 4, 4, 4,
|
|
||||||
4, 4, 4, 4, 4,
|
|
||||||
2, 2, 2, 2,
|
|
||||||
1, 1, 1,
|
|
||||||
4, 4, 4, 4, 4,
|
|
||||||
4, 4, 4, 4, 4,
|
|
||||||
4, 4, 4, 4, 4,
|
|
||||||
2, 2, 2, 2
|
|
||||||
}
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ENCODER_ENABLE
|
|
||||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
|
||||||
if (!encoder_update_user(index, clockwise)) { return false; }
|
|
||||||
if (index == 0) {
|
|
||||||
if (clockwise) {
|
|
||||||
tap_code_delay(KC_VOLU, 10);
|
|
||||||
} else {
|
|
||||||
tap_code_delay(KC_VOLD, 10);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (clockwise) {
|
|
||||||
tap_code(KC_MNXT);
|
|
||||||
} else {
|
|
||||||
tap_code(KC_MPRV);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
// Copyright 2022 jack (@waffle87)
|
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
#pragma once
|
|
||||||
#include "quantum.h"
|
|
||||||
#define xxx KC_NO
|
|
||||||
|
|
||||||
#define LAYOUT_split_3x5_3(\
|
|
||||||
k00, k01, k02, k03, k04, k44, k43, k42, k41, k40, \
|
|
||||||
k10, k11, k12, k13, k14, k54, k53, k52, k51, k50, \
|
|
||||||
k20, k21, k22, k23, k24, k64, k63, k62, k61, k60, \
|
|
||||||
k32, k33, k34, k74, k73, k72 \
|
|
||||||
) \
|
|
||||||
{ \
|
|
||||||
{ k00, k01, k02, k03, k04 }, \
|
|
||||||
{ k10, k11, k12, k13, k14 }, \
|
|
||||||
{ k20, k21, k22, k23, k24 }, \
|
|
||||||
{ xxx, xxx, k32, k33, k34 }, \
|
|
||||||
{ k40, k41, k42, k43, k44 }, \
|
|
||||||
{ k50, k51, k52, k53, k54 }, \
|
|
||||||
{ k60, k61, k62, k63, k64 }, \
|
|
||||||
{ xxx, xxx, k72, k73, k74 } \
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue