Merge f3b21e2a692db48f22b0ec1d8bf083d49b106a9b into 57f89e5388f0f79e27d0e634c9d4621e5a9c214f

This commit is contained in:
temp4gh
2025-01-01 17:07:49 -06:00
committed by GitHub
8 changed files with 491 additions and 0 deletions

View File

@ -0,0 +1,20 @@
/* 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 IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND
#define IS31FL3733_I2C_ADDRESS_2 IS31FL3733_I2C_ADDRESS_GND_VCC

View File

@ -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

View File

@ -0,0 +1,110 @@
/* 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/>.
*/
#include QMK_KEYBOARD_H
const is31fl3733_led_t PROGMEM g_is31fl3733_leds[IS31FL3733_LED_COUNT] = {
{0, SW7_CS1, SW9_CS1, SW8_CS1},
{0, SW7_CS3, SW9_CS3, SW8_CS3},
{0, SW7_CS4, SW9_CS4, SW8_CS4},
{0, SW7_CS5, SW9_CS5, SW8_CS5},
{0, SW7_CS6, SW9_CS6, SW8_CS6},
{0, SW7_CS7, SW9_CS7, SW8_CS7},
{0, SW7_CS8, SW9_CS8, SW8_CS8},
{0, SW7_CS9, SW9_CS9, SW8_CS9},
{0, SW7_CS10, SW9_CS10, SW8_CS10},
{0, SW7_CS11, SW9_CS11, SW8_CS11},
{0, SW7_CS12, SW9_CS12, SW8_CS12},
{0, SW7_CS13, SW9_CS13, SW8_CS13},
{0, SW7_CS14, SW9_CS14, SW8_CS14},
{0, SW7_CS15, SW9_CS15, SW8_CS15},
{0, SW4_CS1, SW6_CS1, SW5_CS1},
{0, SW4_CS2, SW6_CS2, SW5_CS2},
{0, SW4_CS3, SW6_CS3, SW5_CS3},
{0, SW4_CS4, SW6_CS4, SW5_CS4},
{0, SW4_CS5, SW6_CS5, SW5_CS5},
{0, SW4_CS6, SW6_CS6, SW5_CS6},
{0, SW4_CS7, SW6_CS7, SW5_CS7},
{0, SW4_CS8, SW6_CS8, SW5_CS8},
{0, SW4_CS9, SW6_CS9, SW5_CS9},
{0, SW4_CS10, SW6_CS10, SW5_CS10},
{0, SW4_CS11, SW6_CS11, SW5_CS11},
{0, SW4_CS12, SW6_CS12, SW5_CS12},
{0, SW4_CS13, SW6_CS13, SW5_CS13},
{0, SW4_CS14, SW6_CS14, SW5_CS14},
{0, SW4_CS15, SW6_CS15, SW5_CS15},
{0, SW1_CS1, SW3_CS1, SW2_CS1},
{0, SW1_CS2, SW3_CS2, SW2_CS2},
{0, SW1_CS3, SW3_CS3, SW2_CS3},
{0, SW1_CS4, SW3_CS4, SW2_CS4},
{0, SW1_CS5, SW3_CS5, SW2_CS5},
{0, SW1_CS6, SW3_CS6, SW2_CS6},
{0, SW1_CS7, SW3_CS7, SW2_CS7},
{0, SW1_CS8, SW3_CS8, SW2_CS8},
{0, SW1_CS9, SW3_CS9, SW2_CS9},
{0, SW1_CS10, SW3_CS10, SW2_CS10},
{0, SW1_CS11, SW3_CS11, SW2_CS11},
{0, SW1_CS12, SW3_CS12, SW2_CS12},
{0, SW1_CS13, SW3_CS13, SW2_CS13},
{0, SW1_CS14, SW3_CS14, SW2_CS14},
{0, SW1_CS15, SW3_CS15, SW2_CS15},
{1, SW7_CS1, SW9_CS1, SW8_CS1},
{1, SW7_CS2, SW9_CS2, SW8_CS2},
{1, SW7_CS3, SW9_CS3, SW8_CS3},
{1, SW7_CS4, SW9_CS4, SW8_CS4},
{1, SW7_CS5, SW9_CS5, SW8_CS5},
{1, SW7_CS6, SW9_CS6, SW8_CS6},
{1, SW7_CS7, SW9_CS7, SW8_CS7},
{1, SW7_CS8, SW9_CS8, SW8_CS8},
{1, SW7_CS9, SW9_CS9, SW8_CS9},
{1, SW7_CS10, SW9_CS10, SW8_CS10},
{1, SW7_CS11, SW9_CS11, SW8_CS11},
{1, SW7_CS12, SW9_CS12, SW8_CS12},
{1, SW7_CS13, SW9_CS13, SW8_CS13},
{1, SW7_CS14, SW9_CS14, SW8_CS14},
{1, SW7_CS15, SW9_CS15, SW8_CS15},
{1, SW4_CS1, SW6_CS1, SW5_CS1},
{1, SW4_CS2, SW6_CS2, SW5_CS2},
{1, SW4_CS3, SW6_CS3, SW5_CS3},
{1, SW4_CS4, SW6_CS4, SW5_CS4},
{1, SW4_CS5, SW6_CS5, SW5_CS5},
{1, SW4_CS6, SW6_CS6, SW5_CS6},
{1, SW4_CS7, SW6_CS7, SW5_CS7},
{1, SW4_CS8, SW6_CS8, SW5_CS8},
{1, SW4_CS9, SW6_CS9, SW5_CS9},
{1, SW4_CS10, SW6_CS10, SW5_CS10},
{1, SW4_CS11, SW6_CS11, SW5_CS11},
{1, SW4_CS12, SW6_CS12, SW5_CS12},
{1, SW4_CS13, SW6_CS13, SW5_CS13},
{1, SW4_CS14, SW6_CS14, SW5_CS14},
{1, SW4_CS15, SW6_CS15, SW5_CS15},
{1, SW1_CS1, SW3_CS1, SW2_CS1},
{1, SW1_CS2, SW3_CS2, SW2_CS2},
{1, SW1_CS3, SW3_CS3, SW2_CS3},
{1, SW1_CS5, SW3_CS5, SW2_CS5},
{1, SW1_CS6, SW3_CS6, SW2_CS6},
{1, SW1_CS7, SW3_CS7, SW2_CS7},
{1, SW1_CS8, SW3_CS8, SW2_CS8},
{1, SW1_CS9, SW3_CS9, SW2_CS9},
{1, SW1_CS10, SW3_CS10, SW2_CS10},
{1, SW1_CS11, SW3_CS11, SW2_CS11},
{1, SW1_CS12, SW3_CS12, SW2_CS12},
{1, SW1_CS13, SW3_CS13, SW2_CS13},
{1, SW1_CS14, SW3_CS14, SW2_CS14},
{1, SW1_CS15, SW3_CS15, SW2_CS15},
{0, SW7_CS2, SW9_CS2, SW8_CS2},
{1, SW1_CS4, SW3_CS4, SW2_CS4}
};

View File

@ -0,0 +1,246 @@
{
"manufacturer": "redragon",
"keyboard_name": "k715",
"bootloader": "stm32duino",
"bootmagic": {
"matrix": [1, 0]
},
"diode_direction": "COL2ROW",
"dynamic_keymap": {
"layer_count": 2
},
"encoder": {
"rotary": [
{"pin_a": "B5", "pin_b": "B4"}
]
},
"features": {
"bootmagic": true,
"console": true,
"encoder": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true
},
"indicators": {
"caps_lock": "B8",
"on_state": 0
},
"matrix_pins": {
"cols": ["A6", "A7", "C4", "C5", "B0", "B1", "C6", "C7", "C8", "C9", "A8", "A9", "A10", "A13", "A14", "A15"],
"rows": ["A0", "A1", "A2", "A3", "A4", "A5"]
},
"processor": "STM32F103",
"rgb_matrix": {
"animations": {
"solid_color": true,
"alphas_mods": true,
"gradient_up_down": true,
"gradient_left_right": true,
"breathing": true,
"band_sat": true,
"band_val": true,
"band_spiral_val": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"hue_wave": true,
"pixel_flow": true
},
"driver": "is31fl3733",
"layout": [
{"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": 4},
{"x": 207, "y": 23, "flags": 8},
{"x": 207, "y": 27, "flags": 8}
]
},
"usb": {
"device_version": "0.0.1",
"pid": "0x00D1",
"vid": "0x369B"
},
"layout_aliases": {
"LAYOUT_75_ansi": "LAYOUT"
},
"layouts": {
"LAYOUT": {
"layout": [
{"label": "ESC", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "F1", "matrix": [0, 2], "x": 1.5, "y": 0},
{"label": "F2", "matrix": [0, 3], "x": 2.5, "y": 0},
{"label": "F3", "matrix": [0, 4], "x": 3.5, "y": 0},
{"label": "F4", "matrix": [0, 5], "x": 4.5, "y": 0},
{"label": "F5", "matrix": [0, 6], "x": 6, "y": 0},
{"label": "F6", "matrix": [0, 7], "x": 7, "y": 0},
{"label": "F7", "matrix": [0, 8], "x": 8, "y": 0},
{"label": "F8", "matrix": [0, 9], "x": 9, "y": 0},
{"label": "F9", "matrix": [0, 10], "x": 10.5, "y": 0},
{"label": "F10", "matrix": [0, 11], "x": 11.5, "y": 0},
{"label": "F11", "matrix": [0, 12], "x": 12.5, "y": 0},
{"label": "F12", "matrix": [0, 13], "x": 13.5, "y": 0},
{"label": "END", "matrix": [0, 15], "x": 15, "y": 0},
{"label": "GRV", "matrix": [1, 0], "x": 0, "y": 1.25},
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1.25},
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1.25},
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1.25},
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1.25},
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1.25},
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1.25},
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1.25},
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1.25},
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1.25},
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1.25},
{"label": "MINS", "matrix": [1, 11], "x": 11, "y": 1.25},
{"label": "EQL", "matrix": [1, 12], "x": 12, "y": 1.25},
{"label": "BSPC", "matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
{"label": "INS", "matrix": [1, 14], "x": 15, "y": 1.25},
{"label": "TAB", "matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
{"label": "Q", "matrix": [2, 1], "x": 1.5, "y": 2.25},
{"label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.25},
{"label": "E", "matrix": [2, 3], "x": 3.5, "y": 2.25},
{"label": "R", "matrix": [2, 4], "x": 4.5, "y": 2.25},
{"label": "T", "matrix": [2, 5], "x": 5.5, "y": 2.25},
{"label": "Y", "matrix": [2, 6], "x": 6.5, "y": 2.25},
{"label": "U", "matrix": [2, 7], "x": 7.5, "y": 2.25},
{"label": "I", "matrix": [2, 8], "x": 8.5, "y": 2.25},
{"label": "O", "matrix": [2, 9], "x": 9.5, "y": 2.25},
{"label": "P", "matrix": [2, 10], "x": 10.5, "y": 2.25},
{"label": "LBRC", "matrix": [2, 11], "x": 11.5, "y": 2.25},
{"label": "RBRC", "matrix": [2, 12], "x": 12.5, "y": 2.25},
{"label": "BSLS", "matrix": [2, 13], "x": 13.5, "y": 2.25, "w": 1.5},
{"label": "DEL", "matrix": [2, 14], "x": 15, "y": 2.25},
{"label": "CAPS", "matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
{"label": "A", "matrix": [3, 1], "x": 1.75, "y": 3.25},
{"label": "S", "matrix": [3, 2], "x": 2.75, "y": 3.25},
{"label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.25},
{"label": "F", "matrix": [3, 4], "x": 4.75, "y": 3.25},
{"label": "G", "matrix": [3, 5], "x": 5.75, "y": 3.25},
{"label": "H", "matrix": [3, 6], "x": 6.75, "y": 3.25},
{"label": "J", "matrix": [3, 7], "x": 7.75, "y": 3.25},
{"label": "K", "matrix": [3, 8], "x": 8.75, "y": 3.25},
{"label": "L", "matrix": [3, 9], "x": 9.75, "y": 3.25},
{"label": "SCLN", "matrix": [3, 10], "x": 10.75, "y": 3.25},
{"label": "QUOT", "matrix": [3, 11], "x": 11.75, "y": 3.25},
{"label": "ENT", "matrix": [3, 13], "x": 12.75, "y": 3.25, "w": 2.25},
{"label": "PGUP", "matrix": [3, 14], "x": 15, "y": 3.25},
{"label": "LSFT", "matrix": [4, 0], "x": 0, "y": 4.25, "w": 2.25},
{"label": "Z", "matrix": [4, 2], "x": 2.25, "y": 4.25},
{"label": "X", "matrix": [4, 3], "x": 3.25, "y": 4.25},
{"label": "C", "matrix": [4, 4], "x": 4.25, "y": 4.25},
{"label": "V", "matrix": [4, 5], "x": 5.25, "y": 4.25},
{"label": "B", "matrix": [4, 6], "x": 6.25, "y": 4.25},
{"label": "N", "matrix": [4, 7], "x": 7.25, "y": 4.25},
{"label": "M", "matrix": [4, 8], "x": 8.25, "y": 4.25},
{"label": "COMM", "matrix": [4, 9], "x": 9.25, "y": 4.25},
{"label": "DOT", "matrix": [4, 10], "x": 10.25, "y": 4.25},
{"label": "SLSH", "matrix": [4, 11], "x": 11.25, "y": 4.25},
{"label": "RSFT", "matrix": [4, 12], "x": 12.25, "y": 4.25, "w": 1.75},
{"label": "UP", "matrix": [4, 13], "x": 14, "y": 4.25},
{"label": "PGDN", "matrix": [4, 14], "x": 15, "y": 4.25},
{"label": "LCTL", "matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
{"label": "LGUI", "matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
{"label": "LALT", "matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
{"label": "SPC", "matrix": [5, 6], "x": 3.75, "y": 5.25, "w": 6.25},
{"label": "RALT", "matrix": [5, 9], "x": 10, "y": 5.25},
{"label": "MO(1)", "matrix": [5, 10], "x": 11, "y": 5.25},
{"label": "RCTL", "matrix": [5, 11], "x": 12, "y": 5.25},
{"label": "LEFT", "matrix": [5, 12], "x": 13, "y": 5.25},
{"label": "DOWN", "matrix": [5, 13], "x": 14, "y": 5.25},
{"label": "RGHT", "matrix": [5, 14], "x": 15, "y": 5.25}
]
}
}
}

View File

@ -0,0 +1,49 @@
/* 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/>.
*/
#include QMK_KEYBOARD_H
enum layer_names
{
_BASE,
_FnLay,
};
#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[_FnLay] = { ENCODER_CCW_CW(RM_VALD, RM_VALU) },
};
#endif
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_END,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FnLay), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT
),
[_FnLay] = LAYOUT(
QK_BOOT, KC_MYCM, KC_WHOM, KC_CALC, KC_MSEL, KC_MPRV, KC_MNXT, KC_MPLY, KC_MSTP, KC_MUTE, KC_VOLD, KC_VOLU, KC_MAIL, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RM_NEXT,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RM_VALU, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, RM_TOGG, XXXXXXX, _______, XXXXXXX, RM_SPDD, RM_VALD, RM_SPDU
)
};

View File

@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes

View File

@ -0,0 +1,22 @@
/*
ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#pragma once
#include_next <mcuconf.h>
#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

View File

@ -0,0 +1,21 @@
# K715
![k715](https://i.imgur.com/kpoGXfc.png)
A customizable 80% keyboard.
- Keyboard Maintainer: [temp4gh](https://github.com/temp4gh)
- Hardware Supported:K715 PCB
- Hardware Availability: www.redragonzone.com
Make example for this keyboard (after setting up your build environment):
make redragon/k715:default
Flashing example for this keyboard:
make redragon/k715:default:flash
**Reset Key**: Hold down the key located at *K10*, commonly programmed as *Grave* while plugging in the keyboard.
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).