forked from forks/qmk_firmware
[Keyboard] boardsource/microdox data driven (#17675)
This commit is contained in:
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,54 +1,70 @@
|
||||||
{
|
{
|
||||||
"keyboard_name": "microdox",
|
"manufacturer": "Boardsource",
|
||||||
"url": "https://boardsource.xyz/store/5f2e7e4a2902de7151494f92",
|
"keyboard_name": "microdox",
|
||||||
"maintainer": "boardsource",
|
"maintainer": "waffle87",
|
||||||
"layouts": {
|
"development_board": "promicro",
|
||||||
"LAYOUT_split_3x5_3": {
|
"diode_direction": "COL2ROW",
|
||||||
"layout": [
|
"build": {
|
||||||
{ "label": "Q", "x": 0, "y": 0.3 },
|
"lto": true
|
||||||
{ "label": "W", "x": 1, "y": 0.1 },
|
},
|
||||||
{ "label": "E", "x": 2, "y": 0 },
|
"features": {
|
||||||
{ "label": "R", "x": 3, "y": 0.1 },
|
"bootmagic": true,
|
||||||
{ "label": "T", "x": 4, "y": 0.2 },
|
"extrakey": true,
|
||||||
|
"mousekey": true,
|
||||||
{ "label": "Y", "x": 8, "y": 0.2 },
|
"nkro": true,
|
||||||
{ "label": "U", "x": 9, "y": 0.1 },
|
"oled": true
|
||||||
{ "label": "I", "x": 10, "y": 0 },
|
},
|
||||||
{ "label": "O", "x": 11, "y": 0.1 },
|
"url": "https://boardsource.xyz/store/5f2e7e4a2902de7151494f92",
|
||||||
{ "label": "P", "x": 12, "y": 0.3 },
|
"usb": {
|
||||||
|
"pid": "0x0412",
|
||||||
{ "label": "A", "x": 0, "y": 1.3 },
|
"vid": "0xF7E0"
|
||||||
{ "label": "S", "x": 1, "y": 1.1 },
|
},
|
||||||
{ "label": "D", "x": 2, "y": 1 },
|
"split": {
|
||||||
{ "label": "F", "x": 3, "y": 1.1 },
|
"enabled": true
|
||||||
{ "label": "G", "x": 4, "y": 1.2 },
|
},
|
||||||
|
"community_layouts": [
|
||||||
{ "label": "H", "x": 8, "y": 1.2 },
|
"split_3x5_3"
|
||||||
{ "label": "J", "x": 9, "y": 1.1 },
|
],
|
||||||
{ "label": "K", "x": 10, "y": 1 },
|
"layouts": {
|
||||||
{ "label": "L", "x": 11, "y": 1.1 },
|
"LAYOUT_split_3x5_3": {
|
||||||
{ "label": ";", "x": 12, "y": 1.3 },
|
"layout": [
|
||||||
|
{ "matrix": [0, 0], "x": 0, "y": 0 },
|
||||||
{ "label": "Z", "x": 0, "y": 2.3 },
|
{ "matrix": [0, 1], "x": 1, "y": 0 },
|
||||||
{ "label": "X", "x": 1, "y": 2.1 },
|
{ "matrix": [0, 2], "x": 2, "y": 0 },
|
||||||
{ "label": "C", "x": 2, "y": 2 },
|
{ "matrix": [0, 3], "x": 3, "y": 0 },
|
||||||
{ "label": "V", "x": 3, "y": 2.1 },
|
{ "matrix": [0, 4], "x": 4, "y": 0 },
|
||||||
{ "label": "B", "x": 4, "y": 2.2 },
|
{ "matrix": [4, 4], "x": 5, "y": 0 },
|
||||||
|
{ "matrix": [4, 3], "x": 6, "y": 0 },
|
||||||
{ "label": "N", "x": 8, "y": 2.2 },
|
{ "matrix": [4, 2], "x": 7, "y": 0 },
|
||||||
{ "label": "M", "x": 9, "y": 2.1 },
|
{ "matrix": [4, 1], "x": 8, "y": 0 },
|
||||||
{ "label": ",", "x": 10, "y": 2 },
|
{ "matrix": [4, 0], "x": 9, "y": 0 },
|
||||||
{ "label": ".", "x": 11, "y": 2.1 },
|
{ "matrix": [1, 0], "x": 10, "y": 0 },
|
||||||
{ "label": "/", "x": 12, "y": 2.3 },
|
{ "matrix": [1, 1], "x": 11, "y": 0 },
|
||||||
|
{ "matrix": [1, 2], "x": 12, "y": 0 },
|
||||||
{ "label": "GUI / KC_HANJ", "x": 3, "y": 3.7 },
|
{ "matrix": [1, 3], "x": 13, "y": 0 },
|
||||||
{ "label": "Lower", "x": 4, "y": 3.7 },
|
{ "matrix": [1, 4], "x": 14, "y": 0 },
|
||||||
{ "label": "Space", "x": 5, "y": 3.2 },
|
{ "matrix": [5, 4], "x": 15, "y": 0 },
|
||||||
|
{ "matrix": [5, 3], "x": 16, "y": 0 },
|
||||||
{ "label": "Enter", "x": 7, "y": 3.2 },
|
{ "matrix": [5, 2], "x": 17, "y": 0 },
|
||||||
{ "label": "Raise", "x": 8, "y": 3.7 },
|
{ "matrix": [5, 1], "x": 18, "y": 0 },
|
||||||
{ "label": "Alt / KC_HAEN", "x": 9, "y": 3.7 }
|
{ "matrix": [5, 0], "x": 19, "y": 0 },
|
||||||
]
|
{ "matrix": [2, 0], "x": 20, "y": 0 },
|
||||||
}
|
{ "matrix": [2, 1], "x": 21, "y": 0 },
|
||||||
|
{ "matrix": [2, 2], "x": 22, "y": 0 },
|
||||||
|
{ "matrix": [2, 3], "x": 23, "y": 0 },
|
||||||
|
{ "matrix": [2, 4], "x": 24, "y": 0 },
|
||||||
|
{ "matrix": [6, 4], "x": 25, "y": 0 },
|
||||||
|
{ "matrix": [6, 3], "x": 26, "y": 0 },
|
||||||
|
{ "matrix": [6, 2], "x": 27, "y": 0 },
|
||||||
|
{ "matrix": [6, 1], "x": 28, "y": 0 },
|
||||||
|
{ "matrix": [6, 0], "x": 29, "y": 0 },
|
||||||
|
{ "matrix": [3, 2], "x": 30, "y": 0 },
|
||||||
|
{ "matrix": [3, 3], "x": 31, "y": 0 },
|
||||||
|
{ "matrix": [3, 4], "x": 32, "y": 0 },
|
||||||
|
{ "matrix": [7, 4], "x": 33, "y": 0 },
|
||||||
|
{ "matrix": [7, 3], "x": 34, "y": 0 },
|
||||||
|
{ "matrix": [7, 2], "x": 35, "y": 0 }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2020 Cole Smith <cole@boadsource.xyz>
|
Copyright 2022 Cole Smith <cole@boadsource.xyz>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
OLED_ENABLE = yes
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2020 Cole Smith <cole@boadsource.xyz>
|
Copyright 2022 Cole Smith <cole@boadsource.xyz>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
OLED_ENABLE = yes
|
|
||||||
VIA_ENABLE = yes
|
VIA_ENABLE = yes
|
||||||
LTO_ENABLE = yes
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2020 Cole Smith <cole@boadsource.xyz>
|
Copyright 2022 Cole Smith <cole@boadsource.xyz>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -15,9 +15,11 @@ You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "microdox.h"
|
|
||||||
|
|
||||||
#ifdef OLED_ENABLE
|
#ifdef OLED_ENABLE
|
||||||
|
#include "oled_driver.h"
|
||||||
|
#include "bitwise.h"
|
||||||
|
#include "action_layer.h"
|
||||||
|
|
||||||
oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
|
oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
|
||||||
if (is_keyboard_master())
|
if (is_keyboard_master())
|
||||||
return OLED_ROTATION_180;
|
return OLED_ROTATION_180;
|
||||||
|
@ -26,14 +28,12 @@ oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
|
||||||
|
|
||||||
static void render_logo(void) {
|
static void render_logo(void) {
|
||||||
static const char PROGMEM qmk_logo[] = {
|
static const char PROGMEM qmk_logo[] = {
|
||||||
0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,
|
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94,
|
||||||
0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,
|
0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4,
|
||||||
0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,
|
0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0x00
|
||||||
0
|
|
||||||
};
|
};
|
||||||
oled_write_P(qmk_logo, false);
|
oled_write_P(qmk_logo, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void render_status(void) {
|
static void render_status(void) {
|
||||||
switch (get_highest_layer(layer_state)) {
|
switch (get_highest_layer(layer_state)) {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -74,3 +74,24 @@ bool oled_task_kb(void) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENCODER_ENABLE
|
||||||
|
#include "encoder.h"
|
||||||
|
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 true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -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 } \
|
|
||||||
}
|
|
|
@ -8,8 +8,9 @@
|
||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment):
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make boardsource/microdox/v1:default
|
||||||
make boardsource/microdox/v2:default
|
make boardsource/microdox/v2:default
|
||||||
|
|
||||||
Remove `v2` from above command if you purchased your PCBs prior to April 2022
|
Compile `v1` firmware if you purchased your PCBs prior to April 2022.
|
||||||
|
|
||||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
|
|
|
@ -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
|
|
20
keyboards/boardsource/microdox/v1/config.h
Normal file
20
keyboards/boardsource/microdox/v1/config.h
Normal file
|
@ -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
|
25
keyboards/boardsource/microdox/v1/info.json
Normal file
25
keyboards/boardsource/microdox/v1/info.json
Normal file
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
keyboards/boardsource/microdox/v1/rules.mk
Normal file
1
keyboards/boardsource/microdox/v1/rules.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# This file intentionally left blank
|
|
@ -1,45 +1,14 @@
|
||||||
// Copyright 2022 jack (@waffle87)
|
// Copyright 2022 jack (@waffle87)
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
#pragma once
|
#pragma once
|
||||||
#undef MATRIX_ROW_PINS
|
|
||||||
#undef MATRIX_COL_PINS
|
|
||||||
#define MATRIX_ROW_PINS \
|
|
||||||
{ F4, D2, C6, B1 }
|
|
||||||
#define MATRIX_COL_PINS \
|
|
||||||
{ D4, D7, B3, F7, F6 }
|
|
||||||
#define MATRIX_ROW_PINS_RIGHT \
|
|
||||||
{ F5, F7, F6, E6 }
|
|
||||||
#define MATRIX_COL_PINS_RIGHT \
|
|
||||||
{ F4, B1, D7, C6, B3 }
|
|
||||||
#undef SOFT_SERIAL_PIN
|
|
||||||
#define SOFT_SERIAL_PIN D3
|
|
||||||
#undef RGB_DI_PIN
|
|
||||||
#define RGB_DI_PIN B5
|
#define RGB_DI_PIN B5
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
|
||||||
# undef RGBLED_NUM
|
#define DRIVER_LED_TOTAL 44
|
||||||
# undef RGBLED_SPLIT
|
#define RGB_MATRIX_SPLIT { 22, 22 }
|
||||||
# define RGBLED_NUM 8
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED
|
||||||
# define RGBLED_SPLIT { 4, 4 } // underglow only
|
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
|
||||||
# define RGBLIGHT_SLEEP
|
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
|
||||||
# define RGBLIGHT_EFFECT_BREATHING
|
#define ENABLE_RGB_MATRIX_BREATHING
|
||||||
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||||
# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||||
#endif
|
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
|
||||||
# define DRIVER_LED_TOTAL 44
|
|
||||||
# define RGB_MATRIX_SPLIT { 22, 22 }
|
|
||||||
# define RGB_DISABLE_WHEN_USB_SUSPENDED
|
|
||||||
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
|
|
||||||
# define ENABLE_RGB_MATRIX_ALPHAS_MODS
|
|
||||||
# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
|
|
||||||
# define ENABLE_RGB_MATRIX_BREATHING
|
|
||||||
# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
|
||||||
# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
|
||||||
# define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
|
||||||
#endif
|
|
||||||
#ifdef ENCODER_ENABLE
|
|
||||||
# define ENCODERS_PAD_A { E6 }
|
|
||||||
# define ENCODERS_PAD_B { B2 }
|
|
||||||
# define ENCODERS_PAD_A_RIGHT { B6 }
|
|
||||||
# define ENCODERS_PAD_B_RIGHT { B2 }
|
|
||||||
#endif
|
|
||||||
|
|
82
keyboards/boardsource/microdox/v2/info.json
Normal file
82
keyboards/boardsource/microdox/v2/info.json
Normal file
|
@ -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,8 +1 @@
|
||||||
RGB_MATRIX_ENABLE = yes
|
|
||||||
RGB_MATRIX_DRIVER = WS2812
|
RGB_MATRIX_DRIVER = WS2812
|
||||||
RGB_MATRIX_SUPPORTED = yes
|
|
||||||
RGBLIGHT_ENABLE = no
|
|
||||||
OLED_ENABLE = yes
|
|
||||||
OLED_DRIVER = SSD1306
|
|
||||||
ENCODER_ENABLE = yes
|
|
||||||
LTO_ENABLE = yes
|
|
||||||
|
|
|
@ -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 a new issue