From 9581289745736ce068a1040f44cec37a2ca8830d Mon Sep 17 00:00:00 2001 From: lokher Date: Tue, 13 Sep 2022 11:24:05 +0800 Subject: Remove non-Keychron keyboards --- keyboards/maxr1998/pulse4k/config.h | 64 ------------------ keyboards/maxr1998/pulse4k/info.json | 22 ------- .../maxr1998/pulse4k/keymaps/default/keymap.c | 71 -------------------- .../maxr1998/pulse4k/keymaps/default/rules.mk | 1 - .../maxr1998/pulse4k/keymaps/maxr1998/keymap.c | 75 ---------------------- .../maxr1998/pulse4k/keymaps/maxr1998/rules.mk | 1 - keyboards/maxr1998/pulse4k/pulse4k.c | 37 ----------- keyboards/maxr1998/pulse4k/pulse4k.h | 33 ---------- keyboards/maxr1998/pulse4k/readme.md | 13 ---- keyboards/maxr1998/pulse4k/rules.mk | 19 ------ 10 files changed, 336 deletions(-) delete mode 100644 keyboards/maxr1998/pulse4k/config.h delete mode 100644 keyboards/maxr1998/pulse4k/info.json delete mode 100644 keyboards/maxr1998/pulse4k/keymaps/default/keymap.c delete mode 100644 keyboards/maxr1998/pulse4k/keymaps/default/rules.mk delete mode 100644 keyboards/maxr1998/pulse4k/keymaps/maxr1998/keymap.c delete mode 100644 keyboards/maxr1998/pulse4k/keymaps/maxr1998/rules.mk delete mode 100644 keyboards/maxr1998/pulse4k/pulse4k.c delete mode 100644 keyboards/maxr1998/pulse4k/pulse4k.h delete mode 100644 keyboards/maxr1998/pulse4k/readme.md delete mode 100644 keyboards/maxr1998/pulse4k/rules.mk (limited to 'keyboards/maxr1998/pulse4k') diff --git a/keyboards/maxr1998/pulse4k/config.h b/keyboards/maxr1998/pulse4k/config.h deleted file mode 100644 index 697fe10621..0000000000 --- a/keyboards/maxr1998/pulse4k/config.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2019-2020 Maxr1998 - * - * 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 . - */ - -#pragma once - -#include "config_common.h" - -/* Key matrix size */ -#define MATRIX_ROWS 2 -#define MATRIX_COLS 3 - -/* Matrix pins */ -#define MATRIX_ROW_PINS { B4, E6 } -#define MATRIX_COL_PINS { B7, B3, F0 } - -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW - -/* Set 0 if debouncing isn't needed */ -#define DEBOUNCE 5 - -/* Rotary encoders */ -#define ENCODERS_PAD_A { D2, F6 } -#define ENCODERS_PAD_B { D3, F5 } -#define ENCODER_RESOLUTION 4 - -/* Combo setup */ -#define COMBO_COUNT 1 -#define COMBO_TERM 150 - -/* RGB LED Setup */ -#define RGB_DI_PIN F7 // pin the DI on the WS2812B is hooked-up to -#define RGBLIGHT_ANIMATIONS // run RGB animations -#define RGBLED_NUM 2 // number of LEDs - -/* - * 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 diff --git a/keyboards/maxr1998/pulse4k/info.json b/keyboards/maxr1998/pulse4k/info.json deleted file mode 100644 index f5ff668edf..0000000000 --- a/keyboards/maxr1998/pulse4k/info.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "keyboard_name": "Pulse 4k", - "manufacturer": "Maxr1998", - "url": "https://github.com/Maxr1998/Pulse_4k", - "maintainer": "Maxr1998", - "usb": { - "vid": "0xFEED", - "pid": "0x6060", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT": { - "layout": [ - { "w": 1, "x": 0, "y": 0 }, - { "w": 1, "x": 1, "y": 0 }, - { "w": 1, "x": 2, "y": 0 }, - { "w": 1, "x": 0, "y": 1 }, - { "w": 1, "x": 1, "y": 1 }, - { "w": 1, "x": 2, "y": 1 } ] - } - } -} diff --git a/keyboards/maxr1998/pulse4k/keymaps/default/keymap.c b/keyboards/maxr1998/pulse4k/keymaps/default/keymap.c deleted file mode 100644 index 243a96ba74..0000000000 --- a/keyboards/maxr1998/pulse4k/keymaps/default/keymap.c +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2019-2020 Maxr1998 - * - * 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 . - */ - -#include QMK_KEYBOARD_H - -enum layers { - DEFAULT -}; - -enum combo_events { - LED_ADJUST -}; - -const uint16_t PROGMEM led_adjust_combo[] = {KC_LEFT, KC_RGHT, COMBO_END}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [DEFAULT] = LAYOUT( - KC_END, KC_UP, KC_MUTE, - KC_LEFT, KC_DOWN, KC_RGHT - ) -}; - -combo_t key_combos[COMBO_COUNT] = { - [LED_ADJUST] = COMBO_ACTION(led_adjust_combo) -}; - -bool led_adjust_active = false; - -void process_combo_event(uint16_t combo_index, bool pressed) { - if (combo_index == LED_ADJUST) { - led_adjust_active = pressed; - } -} - -bool encoder_update_user(uint8_t index, bool clockwise) { - if (index == 0) { - if (led_adjust_active) { - if (clockwise) { - rgblight_increase_val(); - } else { - rgblight_decrease_val(); - } - return false; - } - } else if (index == 1) { - if (led_adjust_active) { - if (clockwise) { - rgblight_increase_hue(); - } else { - rgblight_decrease_hue(); - } - return false; - } - } - - return true; -} diff --git a/keyboards/maxr1998/pulse4k/keymaps/default/rules.mk b/keyboards/maxr1998/pulse4k/keymaps/default/rules.mk deleted file mode 100644 index ab1e438182..0000000000 --- a/keyboards/maxr1998/pulse4k/keymaps/default/rules.mk +++ /dev/null @@ -1 +0,0 @@ -COMBO_ENABLE = yes diff --git a/keyboards/maxr1998/pulse4k/keymaps/maxr1998/keymap.c b/keyboards/maxr1998/pulse4k/keymaps/maxr1998/keymap.c deleted file mode 100644 index 2aad1fa346..0000000000 --- a/keyboards/maxr1998/pulse4k/keymaps/maxr1998/keymap.c +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2020 Maxr1998 - * - * 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 . - */ - -#include QMK_KEYBOARD_H - -enum layers { - DEFAULT -}; - -enum combo_events { - LED_ADJUST -}; - -const uint16_t PROGMEM led_adjust_combo[] = {KC_F22, KC_F24, COMBO_END}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [DEFAULT] = LAYOUT( - KC_F20, KC_F21, KC_MUTE, - KC_F22, KC_F23, KC_F24 - ) -}; - -combo_t key_combos[COMBO_COUNT] = { - [LED_ADJUST] = COMBO_ACTION(led_adjust_combo) -}; - -bool led_adjust_active = false; - -void process_combo_event(uint16_t combo_index, bool pressed) { - if (combo_index == LED_ADJUST) { - led_adjust_active = pressed; - } -} - -bool encoder_update_user(uint8_t index, bool clockwise) { - if (index == 0) { - if (led_adjust_active) { - if (clockwise) { - rgblight_increase_val(); - } else { - rgblight_decrease_val(); - } - return false; - } - } else if (index == 1) { - if (led_adjust_active) { - if (clockwise) { - rgblight_increase_hue(); - } else { - rgblight_decrease_hue(); - } - return false; - } - } - - return true; -} - -void encoder_one_update(bool clockwise) { - tap_code(!clockwise ? KC_F18 : KC_F19); -} diff --git a/keyboards/maxr1998/pulse4k/keymaps/maxr1998/rules.mk b/keyboards/maxr1998/pulse4k/keymaps/maxr1998/rules.mk deleted file mode 100644 index ab1e438182..0000000000 --- a/keyboards/maxr1998/pulse4k/keymaps/maxr1998/rules.mk +++ /dev/null @@ -1 +0,0 @@ -COMBO_ENABLE = yes diff --git a/keyboards/maxr1998/pulse4k/pulse4k.c b/keyboards/maxr1998/pulse4k/pulse4k.c deleted file mode 100644 index f31eb6db37..0000000000 --- a/keyboards/maxr1998/pulse4k/pulse4k.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2019-2020 Maxr1998 - * - * 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 . - */ - -#include "pulse4k.h" - -bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) return false; - - if (index == 0) { - encoder_one_update(clockwise); - } else if (index == 1) { - encoder_two_update(clockwise); - } - return true; -} - -__attribute__((weak)) void encoder_one_update(bool clockwise) { - tap_code(!clockwise ? KC_PGUP : KC_PGDN); -} - -__attribute__((weak)) void encoder_two_update(bool clockwise) { - tap_code(!clockwise ? KC_VOLD : KC_VOLU); -} diff --git a/keyboards/maxr1998/pulse4k/pulse4k.h b/keyboards/maxr1998/pulse4k/pulse4k.h deleted file mode 100644 index cc0a373b66..0000000000 --- a/keyboards/maxr1998/pulse4k/pulse4k.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2019-2020 Maxr1998 - * - * 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 . - */ - -#pragma once - -#include "quantum.h" - -#define LAYOUT( \ - k00, k01, k02, \ - k10, k11, k12 \ -) \ -{ \ - { k00, k01, k02 }, \ - { k10, k11, k12 }, \ -} - -void encoder_one_update(bool clockwise); - -void encoder_two_update(bool clockwise); diff --git a/keyboards/maxr1998/pulse4k/readme.md b/keyboards/maxr1998/pulse4k/readme.md deleted file mode 100644 index 197e024cf1..0000000000 --- a/keyboards/maxr1998/pulse4k/readme.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pulse 4k -A four-key macropad with two rotary encoders, developed by Maxr1998, [fully open-source](https://github.com/Maxr1998/Pulse_4k). - -

- -Keyboard Maintainer: [Maxr1998](https://github.com/Maxr1998) -Hardware Availability: DIY from the [open-source design files](https://github.com/Maxr1998/Pulse_4k), potential official distribution in the future - -Make example for this keyboard (after setting up your build environment): - - make maxr1998/pulse4k:default - -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). diff --git a/keyboards/maxr1998/pulse4k/rules.mk b/keyboards/maxr1998/pulse4k/rules.mk deleted file mode 100644 index 5533ac6f35..0000000000 --- a/keyboards/maxr1998/pulse4k/rules.mk +++ /dev/null @@ -1,19 +0,0 @@ -# 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 = no # Mouse keys -ENCODER_ENABLE = yes # Rotary encoders -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = yes # 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 -AUDIO_ENABLE = no # Audio output -RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/5c200000.lock: No such file or directory (2)