Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[keyboard] add redragon/k667 #21417

Merged
merged 17 commits into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions keyboards/redragon/k667/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* Copyright 2023 temp4gh
*
* 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


#define DRIVER_ADDR_1 0b1010000
#define DRIVER_ADDR_2 0b1010011

#define DRIVER_COUNT 2
#define DRIVER_1_LED_TOTAL 45
#define DRIVER_2_LED_TOTAL 45

#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL+DRIVER_2_LED_TOTAL)

#define ENABLE_RGB_MATRIX_SOLID_COLOR
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_BREATHING
#define ENABLE_RGB_MATRIX_BAND_SAT
#define ENABLE_RGB_MATRIX_BAND_VAL
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
#define ENABLE_RGB_MATRIX_CYCLE_ALL
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
#define ENABLE_RGB_MATRIX_HUE_WAVE
#define ENABLE_RGB_MATRIX_PIXEL_FLOW
temp4gh marked this conversation as resolved.
Show resolved Hide resolved
22 changes: 22 additions & 0 deletions keyboards/redragon/k667/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* Copyright 2023 temp4gh
*
* 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_next <halconf.h>

#undef HAL_USE_I2C
#define HAL_USE_I2C TRUE
226 changes: 226 additions & 0 deletions keyboards/redragon/k667/info.json
temp4gh marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
{
"keyboard_name": "k667",
"manufacturer": "redragon",
"processor": "STM32F103",
"bootloader": "stm32duino",
"features": {
"bootmagic": true,
"extrakey": true,
"mousekey": true,
"rgb_matrix": true,
"console": true,
"encoder": true,
"nkro": true
},
"bootmagic": {
"matrix": [1, 0]
},
"usb": {
"vid": "0x03F6",
"pid": "0x0020",
"device_version": "0.0.1"
},
"dynamic_keymap": {
"layer_count": 2
},
temp4gh marked this conversation as resolved.
Show resolved Hide resolved
"indicators": {
"caps_lock": "B8",
"on_state": 0
},
"diode_direction": "COL2ROW",
"matrix_pins": {
"rows": [ "A0", "A1", "A2", "A3", "A4", "A5" ],
"cols": [ "A6", "A7", "C4", "C5", "B0", "B1", "C6", "C7", "C8", "C9", "A8", "A9", "A10", "A13", "A14", "A15" ]
},
"encoder": {
"rotary": [
{
"pin_a": "B5",
"pin_b": "B4"
}
]
},
"rgb_matrix": {
temp4gh marked this conversation as resolved.
Show resolved Hide resolved
"driver": "IS31FL3733",
"layout": [
{ "flags": 4, "matrix": [0, 0], "x": 7, "y": 2 },
{ "flags": 4, "matrix": [0, 2], "x": 34, "y": 2 },
{ "flags": 4, "matrix": [0, 3], "x": 48, "y": 2 },
{ "flags": 4, "matrix": [0, 4], "x": 61, "y": 2 },
{ "flags": 4, "matrix": [0, 5], "x": 75, "y": 2 },
{ "flags": 4, "matrix": [0, 6], "x": 95, "y": 2 },
{ "flags": 4, "matrix": [0, 7], "x": 109, "y": 2 },
{ "flags": 4, "matrix": [0, 8], "x": 122, "y": 2 },
{ "flags": 4, "matrix": [0, 9], "x": 136, "y": 2 },
{ "flags": 4, "matrix": [0, 10], "x": 157, "y": 2 },
{ "flags": 4, "matrix": [0, 11], "x": 170, "y": 2 },
{ "flags": 4, "matrix": [0, 12], "x": 184, "y": 2 },
{ "flags": 4, "matrix": [0, 13], "x": 198, "y": 2 },
{ "flags": 4, "matrix": [0, 14], "x": 217, "y": 2 },
{ "flags": 4, "matrix": [1, 0], "x": 7, "y": 14 },
{ "flags": 4, "matrix": [1, 1], "x": 20, "y": 14 },
{ "flags": 4, "matrix": [1, 2], "x": 34, "y": 14 },
{ "flags": 4, "matrix": [1, 3], "x": 48, "y": 14 },
{ "flags": 4, "matrix": [1, 4], "x": 61, "y": 14 },
{ "flags": 4, "matrix": [1, 5], "x": 75, "y": 14 },
{ "flags": 4, "matrix": [1, 6], "x": 89, "y": 14 },
{ "flags": 4, "matrix": [1, 7], "x": 102, "y": 14 },
{ "flags": 4, "matrix": [1, 8], "x": 116, "y": 14 },
{ "flags": 4, "matrix": [1, 9], "x": 129, "y": 14 },
{ "flags": 4, "matrix": [1, 10], "x": 143, "y": 14 },
{ "flags": 4, "matrix": [1, 11], "x": 157, "y": 14 },
{ "flags": 4, "matrix": [1, 12], "x": 170, "y": 14 },
{ "flags": 4, "matrix": [1, 13], "x": 190, "y": 14 },
{ "flags": 4, "matrix": [1, 14], "x": 217, "y": 14 },
{ "flags": 4, "matrix": [2, 0], "x": 10, "y": 24 },
{ "flags": 4, "matrix": [2, 1], "x": 27, "y": 24 },
{ "flags": 4, "matrix": [2, 2], "x": 40, "y": 24 },
{ "flags": 4, "matrix": [2, 3], "x": 54, "y": 24 },
{ "flags": 4, "matrix": [2, 4], "x": 68, "y": 24 },
{ "flags": 4, "matrix": [2, 5], "x": 81, "y": 24 },
{ "flags": 4, "matrix": [2, 6], "x": 95, "y": 24 },
{ "flags": 4, "matrix": [2, 7], "x": 109, "y": 24 },
{ "flags": 4, "matrix": [2, 8], "x": 122, "y": 24 },
{ "flags": 4, "matrix": [2, 9], "x": 136, "y": 24 },
{ "flags": 4, "matrix": [2, 10], "x": 150, "y": 24 },
{ "flags": 4, "matrix": [2, 11], "x": 163, "y": 24 },
{ "flags": 4, "matrix": [2, 12], "x": 177, "y": 24 },
{ "flags": 4, "matrix": [2, 13], "x": 194, "y": 24 },
{ "flags": 4, "matrix": [2, 14], "x": 217, "y": 24 },
{ "flags": 4, "matrix": [3, 0], "x": 12, "y": 34 },
{ "flags": 4, "matrix": [3, 1], "x": 30, "y": 34 },
{ "flags": 4, "matrix": [3, 2], "x": 44, "y": 34 },
{ "flags": 4, "matrix": [3, 3], "x": 58, "y": 34 },
{ "flags": 4, "matrix": [3, 4], "x": 71, "y": 34 },
{ "flags": 4, "matrix": [3, 5], "x": 85, "y": 34 },
{ "flags": 4, "matrix": [3, 6], "x": 99, "y": 34 },
{ "flags": 4, "matrix": [3, 7], "x": 112, "y": 34 },
{ "flags": 4, "matrix": [3, 8], "x": 126, "y": 34 },
{ "flags": 4, "matrix": [3, 9], "x": 140, "y": 34 },
{ "flags": 4, "matrix": [3, 10], "x": 153, "y": 34 },
{ "flags": 4, "matrix": [3, 11], "x": 167, "y": 34 },
{ "flags": 4, "x": 180, "y": 34 },
{ "flags": 4, "matrix": [3, 13], "x": 189, "y": 34 },
{ "flags": 4, "matrix": [3, 14], "x": 217, "y": 34 },
{ "flags": 4, "matrix": [4, 0], "x": 8, "y": 44 },
{ "flags": 4, "x": 24, "y": 44 },
{ "flags": 4, "matrix": [4, 2], "x": 38, "y": 44 },
{ "flags": 4, "matrix": [4, 3], "x": 51, "y": 44 },
{ "flags": 4, "matrix": [4, 4], "x": 65, "y": 44 },
{ "flags": 4, "matrix": [4, 5], "x": 78, "y": 44 },
{ "flags": 4, "matrix": [4, 6], "x": 92, "y": 44 },
{ "flags": 4, "matrix": [4, 7], "x": 106, "y": 44 },
{ "flags": 4, "matrix": [4, 8], "x": 119, "y": 44 },
{ "flags": 4, "matrix": [4, 9], "x": 133, "y": 44 },
{ "flags": 4, "matrix": [4, 10], "x": 147, "y": 44 },
{ "flags": 4, "matrix": [4, 11], "x": 160, "y": 44 },
{ "flags": 4, "matrix": [4, 12], "x": 179, "y": 44 },
{ "flags": 4, "matrix": [4, 13], "x": 201, "y": 46 },
{ "flags": 4, "matrix": [4, 14], "x": 217, "y": 44 },
{ "flags": 4, "matrix": [5, 0], "x": 8, "y": 54 },
{ "flags": 4, "matrix": [5, 1], "x": 25, "y": 54 },
{ "flags": 4, "matrix": [5, 2], "x": 43, "y": 54 },
{ "flags": 4, "x": 67, "y": 57 },
{ "flags": 4, "x": 80, "y": 57 },
{ "flags": 4, "x": 94, "y": 54 },
{ "flags": 4, "matrix": [5, 6], "x": 107, "y": 57 },
{ "flags": 4, "x": 120, "y": 57 },
{ "flags": 4, "matrix": [5, 9], "x": 143, "y": 54 },
{ "flags": 4, "matrix": [5, 10], "x": 157, "y": 54 },
{ "flags": 4, "matrix": [5, 11], "x": 170, "y": 54 },
{ "flags": 4, "matrix": [5, 12], "x": 187, "y": 56 },
{ "flags": 4, "matrix": [5, 13], "x": 201, "y": 56 },
{ "flags": 4, "matrix": [5, 14], "x": 214, "y": 56 },
{ "flags": 8, "x": 207, "y": 23 },
{ "flags": 8, "x": 207, "y": 27 }
]
},
temp4gh marked this conversation as resolved.
Show resolved Hide resolved
"layouts":{
"LAYOUT_75_ansi": {
"layout": [
{"matrix": [0, 0], "label": "ESC", "x":0, "y":0},
{"matrix": [0, 2], "label": "F1", "x":2, "y":0},
{"matrix": [0, 3], "label": "F2", "x":3, "y":0},
{"matrix": [0, 4], "label": "F3", "x":4, "y":0},
{"matrix": [0, 5], "label": "F4", "x":5, "y":0},
{"matrix": [0, 6], "label": "F5", "x":6.5, "y":0},
{"matrix": [0, 7], "label": "F6", "x":7.5, "y":0},
{"matrix": [0, 8], "label": "F7", "x":8.5, "y":0},
{"matrix": [0, 9], "label": "F8", "x":9.5, "y":0},
{"matrix": [0, 10], "label": "F9", "x":11, "y":0},
{"matrix": [0, 11], "label": "F10", "x":12, "y":0},
{"matrix": [0, 12], "label": "F11", "x":13, "y":0},
{"matrix": [0, 13], "label": "F12", "x":14, "y":0},
{"matrix": [0, 15], "label": "END", "x":16.5, "y":0},
{"matrix": [1, 0], "label": "GRV", "x":0, "y":1.25},
{"matrix": [1, 1], "label": "1", "x":1, "y":1.25},
{"matrix": [1, 2], "label": "2", "x":2, "y":1.25},
{"matrix": [1, 3], "label": "3", "x":3, "y":1.25},
{"matrix": [1, 4], "label": "4", "x":4, "y":1.25},
{"matrix": [1, 5], "label": "5", "x":5, "y":1.25},
{"matrix": [1, 6], "label": "6", "x":6, "y":1.25},
{"matrix": [1, 7], "label": "7", "x":7, "y":1.25},
{"matrix": [1, 8], "label": "8", "x":8, "y":1.25},
{"matrix": [1, 9], "label": "9", "x":9, "y":1.25},
{"matrix": [1, 10], "label": "0", "x":10, "y":1.25},
{"matrix": [1, 11], "label": "MINS", "x":11, "y":1.25},
{"matrix": [1, 12], "label": "EQL", "x":12, "y":1.25},
{"matrix": [1, 13], "label": "BSPC", "x":13, "y":1.25, "w":2},
{"matrix": [1, 14], "label": "HOME", "x":16.5, "y":1.25},
{"matrix": [2, 0], "label": "TAB", "x":0, "y":2.25, "w":1.5},
{"matrix": [2, 1], "label": "Q", "x":1.5, "y":2.25},
{"matrix": [2, 2], "label": "W", "x":2.5, "y":2.25},
{"matrix": [2, 3], "label": "E", "x":3.5, "y":2.25},
{"matrix": [2, 4], "label": "R", "x":4.5, "y":2.25},
{"matrix": [2, 5], "label": "T", "x":5.5, "y":2.25},
{"matrix": [2, 6], "label": "Y", "x":6.5, "y":2.25},
{"matrix": [2, 7], "label": "U", "x":7.5, "y":2.25},
{"matrix": [2, 8], "label": "I", "x":8.5, "y":2.25},
{"matrix": [2, 9], "label": "O", "x":9.5, "y":2.25},
{"matrix": [2, 10], "label": "P", "x":10.5, "y":2.25},
{"matrix": [2, 11], "label": "LBRC", "x":11.5, "y":2.25},
{"matrix": [2, 12], "label": "RBRC", "x":12.5, "y":2.25},
{"matrix": [2, 13], "label": "BSLS", "x":13.5, "y":2.25, "w":1.5},
{"matrix": [2, 14], "label": "DEL", "x":16.5, "y":2.25},
{"matrix": [3, 0], "label": "CAPS", "x":0, "y":3.25, "w":1.75},
{"matrix": [3, 1], "label": "A", "x":1.75, "y":3.25},
{"matrix": [3, 2], "label": "S", "x":2.75, "y":3.25},
{"matrix": [3, 3], "label": "D", "x":3.75, "y":3.25},
{"matrix": [3, 4], "label": "F", "x":4.75, "y":3.25},
{"matrix": [3, 5], "label": "G", "x":5.75, "y":3.25},
{"matrix": [3, 6], "label": "H", "x":6.75, "y":3.25},
{"matrix": [3, 7], "label": "J", "x":7.75, "y":3.25},
{"matrix": [3, 8], "label": "K", "x":8.75, "y":3.25},
{"matrix": [3, 9], "label": "L", "x":9.75, "y":3.25},
{"matrix": [3, 10], "label": "SCLN", "x":10.75, "y":3.25},
{"matrix": [3, 11], "label": "QUOT", "x":11.75, "y":3.25},
{"matrix": [3, 13], "label": "ENT", "x":13.75, "y":3.25, "w":1.25},
{"matrix": [3, 14], "label": "PGUP", "x":16.5, "y":3.25},
{"matrix": [4, 0], "label": "LSFT", "x":0, "y":4.25, "w":2.25},
{"matrix": [4, 2], "label": "Z", "x":2.25, "y":4.25},
{"matrix": [4, 3], "label": "X", "x":3.25, "y":4.25},
{"matrix": [4, 4], "label": "C", "x":4.25, "y":4.25},
{"matrix": [4, 5], "label": "V", "x":5.25, "y":4.25},
{"matrix": [4, 6], "label": "B", "x":6.25, "y":4.25},
{"matrix": [4, 7], "label": "N", "x":7.25, "y":4.25},
{"matrix": [4, 8], "label": "M", "x":8.25, "y":4.25},
{"matrix": [4, 9], "label": "COMM", "x":9.25, "y":4.25},
{"matrix": [4, 10], "label": "DOT", "x":10.25, "y":4.25},
{"matrix": [4, 11], "label": "SLSH", "x":11.25, "y":4.25},
{"matrix": [4, 12], "label": "RSFT", "x":12.25, "y":4.25, "w":1.75},
{"matrix": [4, 13], "label": "UP", "x":15.25, "y":4.25},
{"matrix": [4, 14], "label": "PGDN", "x":16.5, "y":4.25},
{"matrix": [5, 0], "label": "LCTL", "x":0, "y":5.25, "w":1.25},
{"matrix": [5, 1], "label": "LGUI", "x":1.25, "y":5.25, "w":1.25},
{"matrix": [5, 2], "label": "LALT", "x":2.5, "y":5.25, "w":1.25},
{"matrix": [5, 6], "label": "SPC", "x":3.75, "y":5.25, "w":6.25},
{"matrix": [5, 9], "label": "RALT", "x":10, "y":5.25, "w":1.25},
{"matrix": [5, 10], "label": "MO(1)", "x":11.25, "y":5.25, "w":1.25},
{"matrix": [5, 11], "label": "RCTL", "x":13, "y":5.25, "w":1.25},
{"matrix": [5, 12], "label": "LEFT", "x":14.25, "y":5.25},
{"matrix": [5, 13], "label": "DOWN", "x":15.25, "y":5.25},
{"matrix": [5, 14], "label": "RGHT", "x":16.5, "y":5.25}
]
}
}
}
Loading