diff options
Diffstat (limited to 'keyboards/dm9records')
41 files changed, 0 insertions, 1346 deletions
diff --git a/keyboards/dm9records/ergoinu/ergoinu.c b/keyboards/dm9records/ergoinu/ergoinu.c deleted file mode 100644 index a01ac0a25c..0000000000 --- a/keyboards/dm9records/ergoinu/ergoinu.c +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright 2018 Takuya Urakawa<twitter:@hsgw> - -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 "ergoinu.h" diff --git a/keyboards/dm9records/ergoinu/ergoinu.h b/keyboards/dm9records/ergoinu/ergoinu.h deleted file mode 100644 index c275d3fa27..0000000000 --- a/keyboards/dm9records/ergoinu/ergoinu.h +++ /dev/null @@ -1,39 +0,0 @@ -/* -Copyright 2018 Takuya Urakawa<twitter:@hsgw> - -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( \ - L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ - L07, L08, L09, L10, L11, L12, L13, R07, R08, R09, R10, R11, R12, R13, \ - L14, L15, L16, L17, L18, L19, R14, R15, R16, R17, R18, R19, R20, \ - L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, R27,\ - L26, L27, L28, L29, L30, R28, R29, R30, R31, R32 \ - ) { \ - { L00, L01, L02, L03, L04, L05, L06 }, \ - { L07, L08, L09, L10, L11, L12, L13 }, \ - { L14, KC_NO, L15, L16, L17, L18, L19 }, \ - { L20, KC_NO, L21, L22, L23, L24, L25 }, \ - { KC_NO, KC_NO, L26, L27, L28, L29, L30}, \ - { R06, R05, R04, R03, R02, R01, R00 }, \ - { R13, R12, R11, R10, R09, R08, R07 }, \ - { R20, R19, R18, R17, R16, R15, R14 }, \ - { R27, R26, R25, R24, R23, R22, R21 }, \ - { KC_NO, KC_NO, R32, R31, R30, R29, R28 } \ - } diff --git a/keyboards/dm9records/ergoinu/info.json b/keyboards/dm9records/ergoinu/info.json deleted file mode 100644 index 10f67b05ac..0000000000 --- a/keyboards/dm9records/ergoinu/info.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "keyboard_name": "Ergoinu", - "manufacturer": "Dm9Records", - "url": "", - "maintainer": "hsgw(Takuya Urakawa)", - "usb": { - "vid": "0x04D8", - "pid": "0xEE60", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT": { - "layout": [ - { "x": 0, "y": 0.6, "label": "ESC" }, - { "x": 1, "y": 0.4, "label": "1" }, - { "x": 2, "y": 0.4, "label": "2" }, - { "x": 3, "y": 0.25, "label": "3" }, - { "x": 4, "y": 0, "label": "4" }, - { "x": 5, "y": 0.25, "label": "5" }, - { "x": 6, "y": 0.4, "label": "6" }, - - { "x": 11, "y": 0.4, "label": "7" }, - { "x": 12, "y": 0.25, "label": "8" }, - { "x": 13, "y": 0, "label": "9" }, - { "x": 14, "y": 0.25, "label": "0" }, - { "x": 15, "y": 0.4, "label": "MINUS" }, - { "x": 16, "y": 0.4, "label": "EQUAL" }, - { "x": 17, "y": 0.6, "label": "BACKSLASH" }, - - { "x": 0, "y": 1.6, "label": "DELETE" }, - { "x": 1, "y": 1.4, "label": "TAB" }, - { "x": 2, "y": 1.4, "label": "Q" }, - { "x": 3, "y": 1.25, "label": "W" }, - { "x": 4, "y": 1, "label": "E" }, - { "x": 5, "y": 1.25, "label": "R" }, - { "x": 6, "y": 1.4, "label": "T" }, - - { "x": 11, "y": 1.4, "label": "Y" }, - { "x": 12, "y": 1.25, "label": "U" }, - { "x": 13, "y": 1, "label": "I" }, - { "x": 14, "y": 1.25, "label": "O" }, - { "x": 15, "y": 1.4, "label": "P" }, - { "x": 16, "y": 1.4, "label": "LBRACKET" }, - { "x": 17, "y": 1.6, "label": "RBRACKET" }, - - { "x": 0.25, "y": 2.6, "w": 1.75, "label": "LCTRL" }, - { "x": 2, "y": 2.4, "label": "A" }, - { "x": 3, "y": 2.25, "label": "S" }, - { "x": 4, "y": 2, "label": "D" }, - { "x": 5, "y": 2.25, "label": "F" }, - { "x": 6, "y": 2.4, "label": "G" }, - - { "x": 11, "y": 2.4, "label": "H" }, - { "x": 12, "y": 2.25, "label": "J" }, - { "x": 13, "y": 2, "label": "K" }, - { "x": 14, "y": 2.25, "label": "L" }, - { "x": 15, "y": 2.4, "label": "SEMICOLON" }, - { "x": 16, "y": 2.4, "label": "QUOTE" }, - { "x": 17, "y": 2.6, "label": "GRAVE" }, - - { "x": 0.25, "y": 3.6, "w": 1.75, "label": "LSHIFT" }, - { "x": 2, "y": 3.4, "label": "Z" }, - { "x": 3, "y": 3.25, "label": "X" }, - { "x": 4, "y": 3, "label": "C" }, - { "x": 5, "y": 3.25, "label": "V" }, - { "x": 6, "y": 3.4, "label": "B" }, - - { "x": 11, "y": 3.4, "label": "N" }, - { "x": 12, "y": 3.25, "label": "M" }, - { "x": 13, "y": 3, "label": "COMMA" }, - { "x": 14, "y": 3.25, "label": "DOT" }, - { "x": 15, "y": 3.4, "label": "SLASH" }, - { "x": 16, "y": 3.4, "label": "RSHIFT" }, - { "x": 17, "y": 3.6, "label": "RSHIFT" }, - - { "x": 3, "y": 4.25, "label": "MO(META)" }, - { "x": 4, "y": 4, "label": "LALT" }, - { "x": 5, "y": 4.25, "label": "LGUI" }, - { "x": 6, "y": 4.4, "label": "ENT" }, - { "x": 7, "y": 4.4, "w": 1.5, "label": "SPACE" }, - - { "x": 9.5, "y": 4.4, "w": 1.5, "label": "ENTER" }, - { "x": 11, "y": 4.4, "label": "BACKSPACE" }, - { "x": 12, "y": 4.25, "label": "RGUI" }, - { "x": 13, "y": 4, "label": "RALT" }, - { "x": 14, "y": 4.25, "label": "MO(META)" } - ] - } - } -} diff --git a/keyboards/dm9records/ergoinu/readme.md b/keyboards/dm9records/ergoinu/readme.md deleted file mode 100644 index 45f91dbac2..0000000000 --- a/keyboards/dm9records/ergoinu/readme.md +++ /dev/null @@ -1,20 +0,0 @@ -# ErgoInu - -![ergoinu](https://i.imgur.com/4CCM8Vl.jpg) - -An (Not Portable But Small) Ergonomic Split Keyboard. - -* Keyboard Maintainer: [hsgw](https://github.com/hsgw/) [twitter](https://twitter.com/hsgw) -* Hardware Supported: Pro Micro -* Hardware Availability & Repository: [https://github.com/hsgw/ergoinu](https://github.com/hsgw/ergoinu) - -Make example for this keyboard (after setting up your build environment): - - make dm9records/ergoinu:default - - (or) - - make dm9records/ergoinu:default_jis - - -See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. diff --git a/keyboards/dm9records/ergoinu/rules.mk b/keyboards/dm9records/ergoinu/rules.mk deleted file mode 100644 index aba3644c9e..0000000000 --- a/keyboards/dm9records/ergoinu/rules.mk +++ /dev/null @@ -1,20 +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 = 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 = no # 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 diff --git a/keyboards/dm9records/lain/config.h b/keyboards/dm9records/lain/config.h deleted file mode 100644 index 592b517ed2..0000000000 --- a/keyboards/dm9records/lain/config.h +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2022 Takuya Urakawa @hsgw (dm9records.com, 5z6p.com) -// SPDX-License-Identifier: GPL-2.0-or-later - -#pragma once - -#include "config_common.h" - -/* key matrix size */ -#define MATRIX_ROWS 4 -#define MATRIX_COLS 13 - -/* - * Keyboard Matrix Assignments - */ -#define MATRIX_ROW_PINS \ - { C6, D7, D6, D4 } -#define MATRIX_COL_PINS \ - { C7, F7, F6, F5, F4, F1, F0, B3, B2, B1, D2, D3, D5 } - -/* COL2ROW, ROW2COL */ -#define DIODE_DIRECTION COL2ROW - -/* LED Settings */ -#define LED_NUM 3 -#define LED_PINS \ - { B6, B5, B4 } - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - -/* 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 - -#define DYNAMIC_KEYMAP_LAYER_COUNT 6 diff --git a/keyboards/dm9records/lain/info.json b/keyboards/dm9records/lain/info.json deleted file mode 100644 index fd39c977fd..0000000000 --- a/keyboards/dm9records/lain/info.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "keyboard_name": "lain", - "manufacturer": "Dm9Records", - "url": "https://5z6p.com/lain", - "maintainer": "hsgw", - "usb": { - "vid": "0x04D8", - "pid": "0xE8F4", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT": { - "layout": [ - { "x": 0, "y": 0 }, - { "x": 1, "y": 0 }, - { "x": 2, "y": 0 }, - { "x": 3, "y": 0 }, - { "x": 4, "y": 0 }, - { "x": 5, "y": 0 }, - { "x": 6, "y": 0 }, - { "x": 8.5, "y": 0 }, - { "x": 9.5, "y": 0 }, - { "x": 10.5, "y": 0 }, - { "x": 11.5, "y": 0 }, - { "x": 12.5, "y": 0 }, - { "x": 13.5, "y": 0, "w": 1.5 }, - { "x": 0.25, "y": 1 }, - { "x": 1.25, "y": 1 }, - { "x": 2.25, "y": 1 }, - { "x": 3.25, "y": 1 }, - { "x": 4.25, "y": 1 }, - { "x": 5.25, "y": 1 }, - { "x": 6.25, "y": 1 }, - { "x": 8.75, "y": 1 }, - { "x": 9.75, "y": 1 }, - { "x": 10.75, "y": 1 }, - { "x": 11.75, "y": 1 }, - { "x": 12.75, "y": 1 }, - { "x": 13.75, "y": 1 }, - { "x": 0.5, "y": 2, "w": 1.25 }, - { "x": 1.75, "y": 2 }, - { "x": 2.75, "y": 2 }, - { "x": 3.75, "y": 2 }, - { "x": 4.75, "y": 2 }, - { "x": 5.75, "y": 2 }, - { "x": 8.25, "y": 2 }, - { "x": 9.25, "y": 2 }, - { "x": 10.25, "y": 2 }, - { "x": 11.25, "y": 2 }, - { "x": 12.25, "y": 2 }, - { "x": 13.25, "y": 2, "w": 1.25 }, - { "x": 1, "y": 3, "w": 1.75 }, - { "x": 2.75, "y": 3, "w": 1.25 }, - { "x": 4, "y": 3 }, - { "x": 5, "y": 3, "w": 1.25 }, - { "x": 6.25, "y": 3 }, - { "x": 7.75, "y": 3 }, - { "x": 8.75, "y": 3, "w": 1.25 }, - { "x": 10, "y": 3 }, - { "x": 11, "y": 3 }, - { "x": 12, "y": 3 }, - { "x": 13, "y": 3, "w": 1.25 } - ] - } - } -} diff --git a/keyboards/dm9records/lain/keymaps/default/keymap.c b/keyboards/dm9records/lain/keymaps/default/keymap.c deleted file mode 100644 index b05150fa5a..0000000000 --- a/keyboards/dm9records/lain/keymaps/default/keymap.c +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2022 Takuya Urakawa @hsgw (dm9records.com, 5z6p.com) -// SPDX-License-Identifier: GPL-2.0-or-later - -#include QMK_KEYBOARD_H - -enum layers { BASE, NUM, FUNC, CONF }; -enum custom_keycodes { LED_EN = SAFE_RANGE }; - -// clang-format off -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - [BASE] = LAYOUT( - KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, - KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_RBRC, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_INS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, - KC_LCTL, KC_LALT, KC_LGUI, MO(NUM), KC_SPC, KC_ENT, MO(FUNC), KC_RALT, KC_MENU, KC_RCTL, KC_RSFT - ), - [NUM] = LAYOUT( - KC_DEL, 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_CAPS, S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), S(KC_9), S(KC_0), S(KC_MINS),S(KC_EQL), - _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, _______, KC_BSLS, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [FUNC] = LAYOUT( - KC_DEL, 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_LEFT, KC_DOWN, KC_UP, KC_RIGHT,_______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [CONF] = LAYOUT( - QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - LED_EN, 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 - ) -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case LED_EN: - if (record->event.pressed) { - lain_enable_leds_toggle(); - } - return false; - default: - break; - } - return true; -} - -// clang-format on - -layer_state_t layer_state_set_user(layer_state_t state) { - layer_state_t computed = update_tri_layer_state(state, NUM, FUNC, CONF); - switch (get_highest_layer(computed)) { - case NUM: - lain_set_led(1, 1); - lain_set_led(2, 0); - break; - case FUNC: - lain_set_led(1, 0); - lain_set_led(2, 1); - break; - case CONF: - lain_set_led(1, 1); - lain_set_led(2, 1); - break; - default: - lain_set_led(1, 0); - lain_set_led(2, 0); - break; - } - return computed; -} - -bool led_update_user(led_t led_state) { - lain_set_led(0, led_state.caps_lock); - return false; -} diff --git a/keyboards/dm9records/lain/keymaps/default/readme.md b/keyboards/dm9records/lain/keymaps/default/readme.md deleted file mode 100644 index 2f59c80ebc..0000000000 --- a/keyboards/dm9records/lain/keymaps/default/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -# The default keymap for lain - -## Leds setting -1: CAPS LOCK -2-3: Layor indicator diff --git a/keyboards/dm9records/lain/keymaps/via/keymap.c b/keyboards/dm9records/lain/keymaps/via/keymap.c deleted file mode 100644 index f6d49cc553..0000000000 --- a/keyboards/dm9records/lain/keymaps/via/keymap.c +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2022 Takuya Urakawa @hsgw (dm9records.com, 5z6p.com) -// SPDX-License-Identifier: GPL-2.0-or-later - -#include QMK_KEYBOARD_H - -enum layers { BASE, NUM, FUNC, CONF, _04, _05 }; - -// clang-format off -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - [BASE] = LAYOUT( - KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, - KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_RBRC, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_INS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, - KC_LCTL, KC_LALT, KC_LGUI, FN_MO13, KC_SPC, KC_ENT, FN_MO23, KC_RALT, KC_MENU, KC_RCTL, KC_RSFT - ), - [NUM] = LAYOUT( - KC_DEL, 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_CAPS, S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), S(KC_9), S(KC_0), S(KC_MINS),S(KC_EQL), - _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, _______, KC_BSLS, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [FUNC] = LAYOUT( - KC_DEL, 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_LEFT, KC_DOWN, KC_UP, KC_RIGHT,_______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [CONF] = LAYOUT( - QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - USER00, 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 - ), - [_04] = LAYOUT( - 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, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX - ), - [_05] = LAYOUT( - 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, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX - ) -}; - -// clang-format on - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case USER00: - // via user keycode USER00 : toggle leds enable - if (record->event.pressed) { - lain_enable_leds_toggle(); - } - return false; - default: - break; - } - return true; -} - -layer_state_t layer_state_set_user(layer_state_t state) { - switch (get_highest_layer(state)) { - case NUM: - lain_set_led(1, 1); - lain_set_led(2, 0); - break; - case FUNC: - lain_set_led(1, 0); - lain_set_led(2, 1); - break; - case CONF: - lain_set_led(1, 1); - lain_set_led(2, 1); - break; - default: - lain_set_led(1, 0); - lain_set_led(2, 0); - break; - } - return state; -} - -bool led_update_user(led_t led_state) { - lain_set_led(0, led_state.caps_lock); - return false; -} diff --git a/keyboards/dm9records/lain/keymaps/via/readme.md b/keyboards/dm9records/lain/keymaps/via/readme.md deleted file mode 100644 index efde27cb47..0000000000 --- a/keyboards/dm9records/lain/keymaps/via/readme.md +++ /dev/null @@ -1,8 +0,0 @@ -# The via keymap for lain - -## Leds setting -1: CAPS LOCK -2-3: Layor indicator - -## Via user keycode -USER00 : toggle leds enable diff --git a/keyboards/dm9records/lain/keymaps/via/rules.mk b/keyboards/dm9records/lain/keymaps/via/rules.mk deleted file mode 100644 index 1e5b99807c..0000000000 --- a/keyboards/dm9records/lain/keymaps/via/rules.mk +++ /dev/null @@ -1 +0,0 @@ -VIA_ENABLE = yes diff --git a/keyboards/dm9records/lain/lain.c b/keyboards/dm9records/lain/lain.c deleted file mode 100644 index cb8354e5c2..0000000000 --- a/keyboards/dm9records/lain/lain.c +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2022 Takuya Urakawa @hsgw (dm9records.com, 5z6p.com) -// SPDX-License-Identifier: GPL-2.0-or-later - -#include "lain.h" - -keyboard_config_t lain_config; - -static const pin_t leds[LED_NUM] = LED_PINS; -bool led_states[LED_NUM] = {0}; - -void lain_eeconfig_update_kb(void) { eeconfig_update_kb(lain_config.raw); } - -void lain_set_led(uint8_t no, bool flag) { - led_states[no] = flag; - writePin(leds[no], lain_config.led_enabled ? flag : false); -} - -void lain_enable_leds(bool flag) { - lain_config.led_enabled = flag; - lain_eeconfig_update_kb(); - - for (int i = 0; i < LED_NUM; i++) { - writePin(leds[i], lain_config.led_enabled ? led_states[i] : false); - } -} - -void lain_enable_leds_toggle(void) { lain_enable_leds(!lain_config.led_enabled); } - -void led_init_ports(void) { - for (uint8_t i = 0; i < LED_NUM; i++) { - setPinOutput(leds[i]); - lain_set_led(leds[i], 0); - } -} - -void eeconfig_init_kb(void) { - // set default config - lain_config.led_enabled = true; - lain_eeconfig_update_kb(); - - eeconfig_init_user(); -} - -void keyboard_post_init_kb(void) { - // read stored config - lain_config.raw = eeconfig_read_kb(); - - keyboard_post_init_user(); -} diff --git a/keyboards/dm9records/lain/lain.h b/keyboards/dm9records/lain/lain.h deleted file mode 100644 index e449416e50..0000000000 --- a/keyboards/dm9records/lain/lain.h +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2022 Takuya Urakawa @hsgw (dm9records.com, 5z6p.com) -// SPDX-License-Identifier: GPL-2.0-or-later - -#pragma once - -#include "quantum.h" - -typedef union { - uint32_t raw; - struct { - bool led_enabled : 1; - }; -} keyboard_config_t; - -extern keyboard_config_t lain_config; - -void lain_set_led(uint8_t no, bool flag); -void lain_enable_leds(bool flag); -void lain_enable_leds_toggle(void); - -/* This is a shortcut to help you visually see your layout. - * - * The first section contains all of the arguments representing the physical - * layout of the board and position of the keys. - * - * The second converts the arguments into a two-dimensional array which - * represents the switch matrix. - */ -// clang-format off -#define LAYOUT( \ - k01,k02,k03,k04,k05,k06,k07, k08,k09,k10,k11,k12,k13, \ - k14,k15,k16,k17,k18,k19,k20, k21,k22,k23,k24,k25,k26, \ - k27,k28,k29,k30,k31,k32, k33,k34,k35,k36,k37,k38, \ - k39,k40,k41,k42,k43, k44,k45,k46,k47,k48,k49) \ - { \ - {k01, k02, k03,k04,k05,k06,k07, k08,k09,k10,k11,k12,k13}, \ - {k14, k15, k16,k17,k18,k19,k20, k21,k22,k23,k2 |