Co-authored-by: Drashna Jaelre <drashna@live.com>pull/16283/head
@ -0,0 +1,135 @@ | |||
/* | |||
Copyright 2020 Sergey Vlasov <sigprof@gmail.com> | |||
Copyright 2022 peepeetee | |||
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" | |||
/* USB Device descriptor parameter */ | |||
#define VENDOR_ID 0x6964 /* "id" */ | |||
#define PRODUCT_ID 0x0080 | |||
#define DEVICE_VER 0x0003 | |||
#define MANUFACTURER IDOBAO | |||
#define PRODUCT ID80 v3 | |||
/* key matrix size */ | |||
#define MATRIX_ROWS 9 | |||
#define MATRIX_COLS 11 | |||
/* | |||
* Keyboard Matrix Assignments | |||
* | |||
* Change this to how you wired your keyboard | |||
* COLS: AVR pins used for columns, left to right | |||
* ROWS: AVR pins used for rows, top to bottom | |||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | |||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | |||
* | |||
* The matrix description in the vendor-supplied JSON file for kbfirmware.com | |||
* had 9 columns: | |||
* { D0, D1, D2, D3, D5, D4, D6, D7, B4 } | |||
* and 12 rows: | |||
* { B7, B3, B2, B1, B0, E6, F0, F1, F4, F5, F6, F7 } | |||
* However, the row 6 was completely empty, and the pin F0 was not actually | |||
* routed anywhere on the PCB, therefore this row was removed to save some | |||
* resources (the EEPROM space for dynamic keymaps is especially scarce). | |||
* | |||
* After doing the above change, the matrix was transposed (rows and columns | |||
* were swapped), because a matrix with the COL2ROW layout can be scanned much | |||
* more efficiently than a matrix with the ROW2COL layout (depending on various | |||
* optimizations, the difference in scan rate can be over 2 times). Because of | |||
* this, the "columns" in the matrix layout now mostly correspond to physical | |||
* rows, and the "rows" have mostly vertical physical orientation. | |||
*/ | |||
#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4 } | |||
#define MATRIX_COL_PINS { B7, B3, B2, B1, B0, E6, F1, F4, F5, F6, F7 } | |||
#define DIODE_DIRECTION COL2ROW | |||
#define RGB_DI_PIN B6 | |||
# define DRIVER_LED_TOTAL 96 /* 16 Bottom 80 top*/ | |||
#ifdef RGB_DI_PIN | |||
# define RGBLED_NUM 96 /* 16 Bottom 80 top*/ | |||
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses | |||
#endif | |||
#ifdef RGB_MATRIX_ENABLE | |||
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value | |||
// RGB Matrix Animation modes. Explicitly enabled | |||
// For full list of effects, see: | |||
// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects | |||
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS | |||
# define RGB_MATRIX_KEYPRESSES | |||
# 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_PINWHEEL_SAT | |||
# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | |||
# define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT | |||
# 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_RAINBOW_MOVING_CHEVRON | |||
# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | |||
# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | |||
# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL | |||
# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL | |||
# define ENABLE_RGB_MATRIX_DUAL_BEACON | |||
# define ENABLE_RGB_MATRIX_RAINBOW_BEACON | |||
# define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS | |||
# define ENABLE_RGB_MATRIX_RAINDROPS | |||
# define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | |||
# define ENABLE_RGB_MATRIX_HUE_BREATHING | |||
# define ENABLE_RGB_MATRIX_HUE_PENDULUM | |||
# define ENABLE_RGB_MATRIX_HUE_WAVE | |||
# define ENABLE_RGB_MATRIX_PIXEL_RAIN | |||
# define ENABLE_RGB_MATRIX_PIXEL_FLOW | |||
# define ENABLE_RGB_MATRIX_PIXEL_FRACTAL | |||
// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined | |||
# define ENABLE_RGB_MATRIX_TYPING_HEATMAP | |||
# define ENABLE_RGB_MATRIX_DIGITAL_RAIN | |||
// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined | |||
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | |||
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE | |||
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | |||
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | |||
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | |||
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | |||
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | |||
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | |||
# define ENABLE_RGB_MATRIX_SPLASH | |||
# define ENABLE_RGB_MATRIX_MULTISPLASH | |||
# define ENABLE_RGB_MATRIX_SOLID_SPLASH | |||
# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH | |||
#endif | |||
/* Bootmagic Lite key configuration: use the Esc key */ | |||
#define BOOTMAGIC_LITE_ROW 0 | |||
#define BOOTMAGIC_LITE_COLUMN 5 | |||
#define ENCODERS_PAD_A { C7 } | |||
#define ENCODERS_PAD_B { C6 } | |||
@ -0,0 +1,96 @@ | |||
{ | |||
"keyboard_name": "ID80 v3", | |||
"url": "", | |||
"maintainer": "qmk", | |||
"layouts": { | |||
"LAYOUT": { | |||
"layout": [ | |||
{"label":"Esc", "x":0, "y":0}, | |||
{"label":"F1", "x":1.25, "y":0}, | |||
{"label":"F2", "x":2.25, "y":0}, | |||
{"label":"F3", "x":3.25, "y":0}, | |||
{"label":"F4", "x":4.25, "y":0}, | |||
{"label":"F5", "x":5.5, "y":0}, | |||
{"label":"F6", "x":6.5, "y":0}, | |||
{"label":"F7", "x":7.5, "y":0}, | |||
{"label":"F8", "x":8.5, "y":0}, | |||
{"label":"F9", "x":9.75, "y":0}, | |||
{"label":"F10", "x":10.75, "y":0}, | |||
{"label":"F11", "x":11.75, "y":0}, | |||
{"label":"F12", "x":12.75, "y":0}, | |||
{"label":"Fn", "x":14, "y":0}, | |||
{"label":"Insert", "x":15.25, "y":0}, | |||
{"label":"`", "x":0, "y":1.25}, | |||
{"label":"1", "x":1, "y":1.25}, | |||
{"label":"2", "x":2, "y":1.25}, | |||
{"label":"3", "x":3, "y":1.25}, | |||
{"label":"4", "x":4, "y":1.25}, | |||
{"label":"5", "x":5, "y":1.25}, | |||
{"label":"6", "x":6, "y":1.25}, | |||
{"label":"7", "x":7, "y":1.25}, | |||
{"label":"8", "x":8, "y":1.25}, | |||
{"label":"9", "x":9, "y":1.25}, | |||
{"label":"0", "x":10, "y":1.25}, | |||
{"label":"-", "x":11, "y":1.25}, | |||
{"label":"=", "x":12, "y":1.25}, | |||
{"label":"Backspace", "x":13, "y":1.25, "w":2}, | |||
{"label":"Home", "x":15.25, "y":1.25}, | |||
{"label":"Tab", "x":0, "y":2.25, "w":1.5}, | |||
{"label":"Q", "x":1.5, "y":2.25}, | |||
{"label":"W", "x":2.5, "y":2.25}, | |||
{"label":"E", "x":3.5, "y":2.25}, | |||
{"label":"R", "x":4.5, "y":2.25}, | |||
{"label":"T", "x":5.5, "y":2.25}, | |||
{"label":"Y", "x":6.5, "y":2.25}, | |||
{"label":"U", "x":7.5, "y":2.25}, | |||
{"label":"I", "x":8.5, "y":2.25}, | |||
{"label":"O", "x":9.5, "y":2.25}, | |||
{"label":"P", "x":10.5, "y":2.25}, | |||
{"label":"[", "x":11.5, "y":2.25}, | |||
{"label":"]", "x":12.5, "y":2.25}, | |||
{"label":"\\", "x":13.5, "y":2.25, "w":1.5}, | |||
{"label":"Delete", "x":15.25, "y":2.25}, | |||
{"label":"Caps Lock", "x":0, "y":3.25, "w":1.75}, | |||
{"label":"A", "x":1.75, "y":3.25}, | |||
{"label":"S", "x":2.75, "y":3.25}, | |||
{"label":"D", "x":3.75, "y":3.25}, | |||
{"label":"F", "x":4.75, "y":3.25}, | |||
{"label":"G", "x":5.75, "y":3.25}, | |||
{"label":"H", "x":6.75, "y":3.25}, | |||
{"label":"J", "x":7.75, "y":3.25}, | |||
{"label":"K", "x":8.75, "y":3.25}, | |||
{"label":"L", "x":9.75, "y":3.25}, | |||
{"label":";", "x":10.75, "y":3.25}, | |||
{"label":"'", "x":11.75, "y":3.25}, | |||
{"label":"Enter", "x":12.75, "y":3.25, "w":2.25}, | |||
{"label":"Shift", "x":0, "y":4.25, "w":2.25}, | |||
{"label":"Z", "x":2.25, "y":4.25}, | |||
{"label":"X", "x":3.25, "y":4.25}, | |||
{"label":"C", "x":4.25, "y":4.25}, | |||
{"label":"V", "x":5.25, "y":4.25}, | |||
{"label":"B", "x":6.25, "y":4.25}, | |||
{"label":"N", "x":7.25, "y":4.25}, | |||
{"label":"M", "x":8.25, "y":4.25}, | |||
{"label":",", "x":9.25, "y":4.25}, | |||
{"label":".", "x":10.25, "y":4.25}, | |||
{"label":"/", "x":11.25, "y":4.25}, | |||
{"label":"Shift", "x":12.25, "y":4.25, "w":1.75}, | |||
{"label":"\u2191", "x":14.25, "y":4.5}, | |||
{"label":"Ctrl", "x":0, "y":5.25, "w":1.25}, | |||
{"label":"Win", "x":1.25, "y":5.25, "w":1.25}, | |||
{"label":"Alt", "x":2.5, "y":5.25, "w":1.25}, | |||
{"x":3.75, "y":5.25, "w":6.25}, | |||
{"label":"Alt", "x":10, "y":5.25, "w":1.5}, | |||
{"label":"Ctrl", "x":11.5, "y":5.25, "w":1.5}, | |||
{"label":"\u2190", "x":13.25, "y":5.5}, | |||
{"label":"\u2193", "x":14.25, "y":5.5}, | |||
{"label":"\u2192", "x":15.25, "y":5.5} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,36 @@ | |||
/* Copyright 2020 Sergey Vlasov <sigprof@gmail.com> | |||
* | |||
* 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 uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
[0] = 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, MO(1), KC_INS, | |||
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_HOME, | |||
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_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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | |||
), | |||
[1] = LAYOUT( | |||
RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, RGB_TOG, _______, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, BL_DEC, BL_TOGG, BL_INC, NK_TOGG, _______, _______, _______, _______, _______, BL_INC, | |||
_______, _______, _______, _______, _______, _______, BL_TOGG, BL_DEC, BL_STEP | |||
), | |||
}; | |||
@ -0,0 +1 @@ | |||
# The default keymap for id80 |
@ -0,0 +1,52 @@ | |||
/* Copyright 2020 Sergey Vlasov <sigprof@gmail.com> | |||
* | |||
* 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 uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
[0] = 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, MO(1), KC_INS, | |||
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_HOME, | |||
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_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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | |||
), | |||
[1] = LAYOUT( | |||
RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, RGB_TOG, _______, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, BL_DEC, BL_TOGG, BL_INC, NK_TOGG, _______, _______, _______, _______, _______, BL_INC, | |||
_______, _______, _______, _______, _______, _______, BL_TOGG, BL_DEC, BL_STEP | |||
), | |||
[2] = LAYOUT( | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______ | |||
), | |||
[3] = LAYOUT( | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______ | |||
), | |||
}; | |||
@ -0,0 +1,2 @@ | |||
LTO_ENABLE = yes | |||
VIA_ENABLE = yes |
@ -0,0 +1,27 @@ | |||
# ID80v3 | |||
![ID80v3](https://i.imgur.com/PGvZfQj.jpg) | |||
A 75% hotswap in-switch RGB keyboard with an encoder. | |||
* Keyboard Maintainer: [peepeetee](https://github.com/peepeetee) | |||
* Hardware Supported: ID80v3 | |||
* Hardware Availability: Not avaliable yet | |||
Make example for this keyboard (after setting up your build environment): | |||
make idobao/id80/v3:default | |||
Flashing example for this keyboard: | |||
make idobao/id80/v3:default:flash | |||
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). | |||
## Bootloader | |||
Enter the bootloader in 3 ways: | |||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | |||
* **Physical reset button**: Briefly press the button on the back of the PCB | |||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available |
@ -0,0 +1,22 @@ | |||
# 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 = yes # 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 = no # Enable keyboard RGB underglow | |||
AUDIO_ENABLE = no # Audio output | |||
ENCODER_ENABLE = yes | |||
RGB_MATRIX_ENABLE = yes | |||
RGB_MATRIX_DRIVER = WS2812 |
@ -0,0 +1,62 @@ | |||
// Copyright 2022 peepeetee (@peepeetee) | |||
// Copyright 2022 Xelus22 | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#include "v3.h" | |||
#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); | |||
} | |||
} | |||
return true; | |||
} | |||
#endif | |||
#ifdef RGB_MATRIX_ENABLE | |||
led_config_t g_led_config = { { | |||
// Key Matrix to LED Index | |||
{ 8, 9, 34, 35, 64, 65, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, | |||
{ 7, NO_LED, 33, 36, 63, 66, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, | |||
{ 6, 10, 32, 37, 62, 67, NO_LED, NO_LED, 49, 50, 79 }, | |||
{ 0, 11, 31, 38, 61, 68, 21, NO_LED, 48, NO_LED, 77 }, | |||
{ 1, 12, 30, 39, 60, 69, 20, 22, 47, 52, 76 }, | |||
{ 2, 13, 29, 40, 59, 70, 19, 23, 46, 53, 75 }, | |||
{ 5, 14, 28, 41, 58, 71, NO_LED, NO_LED, NO_LED, 51, 78 }, | |||
{ 3, 15, 27, 42, 57, 72, 18, 24, 45, 54, 74 }, | |||
{ 4, 16, 26, 43, 56, 73, 17, 25, 44, 55, NO_LED }, | |||
}, { | |||
// LED Index to Physical Position | |||
{224, 64}, {209, 64}, {195, 64}, {173, 61}, {151, 61}, {94 , 61}, {39 , 61}, {20 , 61}, {2 , 61}, {9 , 50}, {33 , 50}, | |||
{48 , 50}, {62 , 50}, {77 , 50}, {92 , 50}, {106, 50}, {121, 50}, {136, 50}, {151, 50}, {165, 50}, {185, 50}, {209, 53}, | |||
{196, 39}, {173, 39}, {158, 39}, {143, 39}, {129, 39}, {114, 39}, {99 , 39}, {84 , 39}, {70 , 39}, {55 , 39}, {40 , 39}, | |||
{26 , 39}, {6 , 39}, {4 , 28}, {22 , 28}, {37 , 28}, {51 , 28}, {66 , 28}, {81 , 28}, {95 , 28}, {110, 28}, {125, 28}, | |||
{140, 28}, {154, 28}, {169, 28}, {184, 28}, {202, 28}, {224, 28}, {224, 17}, {198, 17}, {176, 17}, {162, 17}, {147, 17}, | |||
{132, 17}, {118, 17}, {103, 17}, {88 , 17}, {73 , 17}, {59 , 17}, {44 , 17}, {29 , 17}, {15 , 17}, {0 , 17}, {0 , 0}, | |||
{18 , 0}, {33 , 0}, {48 , 0}, {62 , 0}, {81 , 0}, {95 , 0}, {110, 0}, {125, 0}, {143, 0}, {158, 0}, {173, 0}, | |||
{187, 0}, {206, 0}, {224, 0}, | |||
{ 207, 13}, | |||
{ 207, 32}, | |||
{ 207, 51},{ 174, 51},{ 141, 51},{ 108, 51},{ 73, 51},{ 40, 51},{ 13, 51 }, | |||
{ 13, 32}, | |||
{ 13, 13},{ 40, 13},{ 73, 13},{ 108, 13},{ 141, 13},{ 174, 13}, | |||
}, { | |||
// LED Index to Flag | |||
1,1,1,1,1,4,1,1,1, | |||
1,4,4,4,4,4,4,4,4,4,4,1,1, | |||
1,4,4,4,4,4,4,4,4,4,4,4,1, | |||
1,4,4,4,4,4,4,4,4,4,4,4,4,4,1, | |||
1,1,4,4,4,4,4,4,4,4,4,4,4,4,4, | |||
1,4,4,4,4,1,1,1,1,4,4,4,4,1,1, | |||
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, | |||
} }; | |||
#endif |
@ -0,0 +1,37 @@ | |||
/* Copyright 2020 Sergey Vlasov <sigprof@gmail.com> | |||
* | |||
* 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( \ | |||
K50, K51, K52, K53, K54, K55, K56, K57, K58, KA7, KA5, KA4, KA3, KA6, KA2, \ | |||
K40, K41, K42, K43, K44, K45, K46, K47, K48, K98, K97, K95, K94, K96, K92, \ | |||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K88, K87, K85, K84, K83, K82, \ | |||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K78, K77, K75, K74, \ | |||
K10, K12, K13, K14, K15, K16, K17, K18, K68, K67, K65, K64, K63, \ | |||
K00, K01, K02, K06, K08, K07, K05, K04, K03 \ | |||
) { \ | |||
{ K00, K10, K20, K30, K40, K50, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \ | |||
{ K01, KC_NO, K21, K31, K41, K51, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \ | |||
{ K02, K12, K22, K32, K42, K52, KC_NO, KC_NO, K82, K92, KA2 }, \ | |||
{ K03, K13, K23, K33, K43, K53, K63, KC_NO, K83, KC_NO, KA3 }, \ | |||
{ K04, K14, K24, K34, K44, K54, K64, K74, K84, K94, KA4 }, \ | |||
{ K05, K15, K25, K35, K45, K55, K65, K75, K85, K95, KA5 }, \ | |||
{ K06, K16, K26, K36, K46, K56, KC_NO, KC_NO, KC_NO, K96, KA6 }, \ | |||
{ K07, K17, K27, K37, K47, K57, K67, K77, K87, K97, KA7 }, \ | |||
{ K08, K18, K28, K38, K48, K58, K68, K78, K88, K98, KC_NO }, \ | |||
} |