diff options
author | Drashna Jaelre <drashna@live.com> | 2019-04-09 08:58:11 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-04-09 08:58:11 -0700 |
commit | b6850bc043b1d129042f47501f0a1dc1e196f962 (patch) | |
tree | a0a772f278c3c494db3bc69103955af5561e1cae /keyboards/staryu | |
parent | 19ed62114a1f5d20aacb9cbe83105e977b9a2971 (diff) |
remove all keyboards but ergodox and planck
Diffstat (limited to 'keyboards/staryu')
-rw-r--r-- | keyboards/staryu/backlight_staryu.h | 21 | ||||
-rwxr-xr-x | keyboards/staryu/config.h | 68 | ||||
-rw-r--r-- | keyboards/staryu/info.json | 12 | ||||
-rw-r--r-- | keyboards/staryu/keymaps/default/README.md | 3 | ||||
-rwxr-xr-x | keyboards/staryu/keymaps/default/keymap.c | 104 | ||||
-rw-r--r-- | keyboards/staryu/keymaps/default/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/staryu/keymaps/krusli/README.md | 9 | ||||
-rw-r--r-- | keyboards/staryu/keymaps/krusli/keymap.c | 94 | ||||
-rw-r--r-- | keyboards/staryu/readme.md | 15 | ||||
-rwxr-xr-x | keyboards/staryu/rules.mk | 78 | ||||
-rwxr-xr-x | keyboards/staryu/staryu.c | 44 | ||||
-rwxr-xr-x | keyboards/staryu/staryu.h | 32 |
12 files changed, 0 insertions, 481 deletions
diff --git a/keyboards/staryu/backlight_staryu.h b/keyboards/staryu/backlight_staryu.h deleted file mode 100644 index 3272283e99..0000000000 --- a/keyboards/staryu/backlight_staryu.h +++ /dev/null @@ -1,21 +0,0 @@ -/* -Copyright 2019 - -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 - -// Add backwards compatibility for existing keymaps -#define backlight_led_off(i) backlight_set_value(i, 0) -#define backlight_led_on(i) backlight_set_value(i, 1)
\ No newline at end of file diff --git a/keyboards/staryu/config.h b/keyboards/staryu/config.h deleted file mode 100755 index 7f8b39ba7b..0000000000 --- a/keyboards/staryu/config.h +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2018 Cole Markham - -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 0x1209 -#define PRODUCT_ID 0x2328 -#define DEVICE_VER 0x0205 -#define MANUFACTURER K.T.E.C. -#define PRODUCT Staryu -#define DESCRIPTION 5-key macropad - -/* key matrix size */ -#define MATRIX_ROWS 1 -#define MATRIX_COLS 5 - -/* key matrix pins */ -#define MATRIX_ROW_PINS { NO_PIN } -#define MATRIX_COL_PINS { D0, D1, D2, D3, D4 } -#define UNUSED_PINS - -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW - -#define RGB_DI_PIN C6 -#define RGBLED_NUM 1 // Number of LEDs -#define RGBLIGHT_ANIMATIONS -// #ifdef RGB_DI_PIN -// #define RGBLIGHT_HUE_STEP 8 -// #define RGBLIGHT_SAT_STEP 8 -// #define RGBLIGHT_VAL_STEP 8 -// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ -// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ -// /*== all animations enable ==*/ -// #define RGBLIGHT_ANIMATIONS -// /*== or choose animations ==*/ -// #define RGBLIGHT_EFFECT_BREATHING -// #define RGBLIGHT_EFFECT_RAINBOW_MOOD -// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL -// #define RGBLIGHT_EFFECT_SNAKE -// #define RGBLIGHT_EFFECT_KNIGHT -// #define RGBLIGHT_EFFECT_CHRISTMAS -// #define RGBLIGHT_EFFECT_STATIC_GRADIENT -// #define RGBLIGHT_EFFECT_RGB_TEST -// #define RGBLIGHT_EFFECT_ALTERNATING -// #endif - -#define BACKLIGHT_LEVELS 1 // either on/off -#define RGBLIGHT_LIMIT_VAL 200 - -/* Set 0 if debouncing isn't needed */ -#define DEBOUNCING_DELAY 5 diff --git a/keyboards/staryu/info.json b/keyboards/staryu/info.json deleted file mode 100644 index baac7dfc29..0000000000 --- a/keyboards/staryu/info.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "keyboard_name": "staryu", - "url": "", - "maintainer": "qmk", - "width": 3, - "height": 2, - "layouts": { - "LAYOUT": { - "layout": [{"x":1, "y":0}, {"x":2, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}] - } - } -} diff --git a/keyboards/staryu/keymaps/default/README.md b/keyboards/staryu/keymaps/default/README.md deleted file mode 100644 index 836d3ab4dc..0000000000 --- a/keyboards/staryu/keymaps/default/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Default keymap - -Default keymap for the Staryu macropad, adapted from [kairyu's repo](https://github.com/kairyu/tmk_keyboard_custom/blob/master/keyboard/staryu/keymap_default.c). diff --git a/keyboards/staryu/keymaps/default/keymap.c b/keyboards/staryu/keymaps/default/keymap.c deleted file mode 100755 index 8c47ff44ab..0000000000 --- a/keyboards/staryu/keymaps/default/keymap.c +++ /dev/null @@ -1,104 +0,0 @@ -/* -Copyright 2018 Kenneth Aloysius - -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 layers { - _LAYER0, - _LAYER1, - _LAYER2, - _LAYER3, - _LAYER4 -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - [_LAYER0] = LAYOUT( -/* ┌─────────┬─────────┬─────────┐ */ - KC_UP, TO(_LAYER1), -/* ├─────────┼─────────┼─────────┤ */ - KC_LEFT, KC_DOWN, KC_RIGHT -/* └─────────┴─────────┴─────────┘ */ - ), - - [_LAYER1] = LAYOUT( -/* ┌─────────┬─────────┬─────────┐ */ - KC_PGUP, TO(_LAYER2), -/* ├─────────┼─────────┼─────────┤ */ - KC_HOME, KC_PGDN, KC_END -/* └─────────┴─────────┴─────────┘ */ - ), - - [_LAYER2] = LAYOUT( -/* ┌─────────┬─────────┬─────────┐ */ - KC_MSEL, TO(_LAYER3), -/* ├─────────┼─────────┼─────────┤ */ - KC_MPRV, KC_MPLY, KC_MNXT -/* └─────────┴─────────┴─────────┘ */ - ), - - [_LAYER3] = LAYOUT( -/* ┌─────────┬─────────┬─────────┐ */ - KC_MS_U, TO(_LAYER4), -/* ├─────────┼─────────┼─────────┤ */ - KC_MS_L, KC_MS_D, KC_MS_R -/* └─────────┴─────────┴─────────┘ */ - ), - - [_LAYER4] = LAYOUT( -/* ┌─────────┬─────────┬─────────┐ */ - XXXXXXX, TO(_LAYER0), -/* ├─────────┼─────────┼─────────┤ */ - RGB_TOG, BL_TOGG, BL_STEP -/* └─────────┴─────────┴─────────┘ */ - ), - -}; - -void eeconfig_init_user(void) { - // use the non noeeprom versions, to write these values to EEPROM too - rgblight_enable(); - rgblight_mode(RGBLIGHT_MODE_BREATHING+1); - - backlight_enable(); -} - -void keyboard_post_init_user(void) { - //layer_state_set_user is not called for inital state - set it here - rgblight_sethsv_noeeprom_white(); -} - -uint32_t layer_state_set_user(uint32_t state) { - switch (biton32(state)) { - case _LAYER1: - rgblight_sethsv_noeeprom_cyan(); - break; - case _LAYER2: - rgblight_sethsv_noeeprom_magenta(); - break; - case _LAYER3: - rgblight_sethsv_noeeprom_red(); - break; - case _LAYER4: - rgblight_sethsv_noeeprom_orange(); - break; - case _LAYER0: - default: // for any other layers, or the default layer - rgblight_sethsv_noeeprom_white(); - break; - } - return state; -} diff --git a/keyboards/staryu/keymaps/default/rules.mk b/keyboards/staryu/keymaps/default/rules.mk deleted file mode 100644 index 6c605daecf..0000000000 --- a/keyboards/staryu/keymaps/default/rules.mk +++ /dev/null @@ -1 +0,0 @@ -MOUSEKEY_ENABLE = yes diff --git a/keyboards/staryu/keymaps/krusli/README.md b/keyboards/staryu/keymaps/krusli/README.md deleted file mode 100644 index 66a0979070..0000000000 --- a/keyboards/staryu/keymaps/krusli/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# krusli's RAMA M6-A Layout - -Personal keymap for the RAMA M6-A. - -Top-right button acts as a "toggle between layers" button. Layer 0 -> Layer 1 -> Layer 2 -> Layer 0 -> ... - -- Layer 0: Osu! gamepad layer -- Layer 1: Git commands -- Layer 2 and 3: RGB controls diff --git a/keyboards/staryu/keymaps/krusli/keymap.c b/keyboards/staryu/keymaps/krusli/keymap.c deleted file mode 100644 index cdfa9fe8fe..0000000000 --- a/keyboards/staryu/keymaps/krusli/keymap.c +++ /dev/null @@ -1,94 +0,0 @@ -/* -Copyright 2018 Kenneth Aloysius - -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 -#include "action_layer.h" - -#include "../../backlight_staryu.h" - -enum layers { - _LAYER0, - _LAYER1, - _LAYER2, - _LAYER3 -}; - -enum custom_keycodes { - GIT_ADD = SAFE_RANGE, - GIT_COMMIT, - GIT_PUSH, - MUTE, - DEAFEN -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - if (record->event.pressed) { - switch(keycode) { - case GIT_ADD: - SEND_STRING("git add ."SS_TAP(X_ENTER)); - break; - case GIT_COMMIT: - SEND_STRING("git commit -m "SS_DOWN(X_LSHIFT)SS_TAP(X_QUOTE)SS_UP(X_LSHIFT)); - break; - case GIT_PUSH: - SEND_STRING("git push"SS_TAP(X_ENTER)); - break; - case MUTE: - SEND_STRING(SS_LGUI(SS_LSFT("M"))); - break; - case DEAFEN: - SEND_STRING(SS_LGUI(SS_LSFT("D"))); - break; - return false; - } - } - return true; -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_LAYER0] = LAYOUT( \ - KC_ESC, TO(_LAYER1), \ - KC_Z, KC_X, KC_ENT \ - ), - [_LAYER1] = LAYOUT( \ - MUTE, TO(_LAYER2), \ - GIT_ADD, GIT_COMMIT, GIT_PUSH \ - ), - [_LAYER2] = LAYOUT( \ - RGB_MOD, TO(_LAYER3), \ - RGB_TOG, RGB_HUD, RGB_HUI \ - ), - [_LAYER3] = LAYOUT( \ - RGB_VAI, TO(_LAYER0), \ - RGB_SAD, RGB_VAD, RGB_SAI \ - ) -}; - -const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { - return MACRO_NONE ; -} - -void matrix_init_user(void) { - for (int i=0; i<5; i++) { - backlight_led_on(i); - } -} - -void matrix_scan_user(void) { -} - -void led_set_user(uint8_t usb_led) { -} diff --git a/keyboards/staryu/readme.md b/keyboards/staryu/readme.md deleted file mode 100644 index 1b2f9e8f53..0000000000 --- a/keyboards/staryu/readme.md +++ /dev/null @@ -1,15 +0,0 @@ -# Staryu - -![Staryu](https://i.imgur.com/obcCpZN.jpg) - -A 5 key macropad, designed by Kai and sold by KPRepublic. - -Keyboard Maintainer: QMK Community -Hardware Supported: Staryu (only the non-lite version has been tested) -Hardware Availability: [AliExpress](https://www.aliexpress.com/item/Staryu-Mini-Macro-Pad-custom-keyboard-by-tkg-kai-Mini-macro-pad-mechanical-keyboard-5-keys/32817560746.html) - -Make example for this keyboard (after setting up your build environment): - - make staryu:default - -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/staryu/rules.mk b/keyboards/staryu/rules.mk deleted file mode 100755 index ad4873a39a..0000000000 --- a/keyboards/staryu/rules.mk +++ /dev/null @@ -1,78 +0,0 @@ -# MCU name -MCU = atmega32u2 - -# Processor frequency. -# This will define a symbol, F_CPU, in all source code files equal to the -# processor frequency in Hz. You can then use this symbol in your source code to -# calculate timings. Do NOT tack on a 'UL' at the end, this will be done -# automatically to create a 32-bit value in your source code. -# -# This will be an integer division of F_USB below, as it is sourced by -# F_USB after it has run through any CPU prescalers. Note that this value -# does not *change* the processor frequency - it should merely be updated to -# reflect the processor speed set externally so that the code can use accurate -# software delays. -F_CPU = 16000000 - -# -# LUFA specific -# -# Target architecture (see library "Board Types" documentation). -ARCH = AVR8 - -# Input clock frequency. -# This will define a symbol, F_USB, in all source code files equal to the -# input clock frequency (before any prescaling is performed) in Hz. This value may -# differ from F_CPU if prescaling is used on the latter, and is required as the -# raw input clock is fed directly to the PLL sections of the AVR for high speed -# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' -# at the end, this will be done automatically to create a 32-bit value in your -# source code. -# -# If no clock division is performed on the input clock inside the AVR (via the -# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. -F_USB = $(F_CPU) - -# Interrupt driven control endpoint task(+60) -OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT - -# Bootloader selection -# Teensy halfkay -# Pro Micro caterina -# Atmel DFU atmel-dfu -# LUFA DFU lufa-dfu -# QMK DFU qmk-dfu -# atmega32a bootloadHID -BOOTLOADER = lufa-dfu - - -# If you don't know the bootloader type, then you can specify the -# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line -# Teensy halfKay 512 -# Teensy++ halfKay 1024 -# Atmel DFU loader 4096 -# LUFA bootloader 4096 -# USBaspLoader 2048 -# OPT_DEFS += -DBOOTLOADER_SIZE=4096 - - -# Build Options -# comment out to disable the options. -# -BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) -MOUSEKEY_ENABLE = no # Mouse keys(+4700) -EXTRAKEY_ENABLE = yes # Audio control and System control(+450) -CONSOLE_ENABLE = no # Console for debug(+400) -COMMAND_ENABLE = no # Commands for debug and configuration -# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE -SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend -# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work -NKRO_ENABLE = no # USB Nkey Rollover -BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default -RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow -MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) -UNICODE_ENABLE = no # Unicode -BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID -AUDIO_ENABLE = no # Audio output on port C6 -FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches -HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) diff --git a/keyboards/staryu/staryu.c b/keyboards/staryu/staryu.c deleted file mode 100755 index 20334c0b78..0000000000 --- a/keyboards/staryu/staryu.c +++ /dev/null @@ -1,44 +0,0 @@ -/* -Copyright 2018 Cole Markham - -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 "staryu.h" - -#ifdef BACKLIGHT_ENABLE - -#ifdef BACKLIGHT_PIN - #pragma error "BACKLIGHT_PIN must stay undefined otherwise software pwm is incorrectly used" -#endif - -#define BACKLIGHT_PIN_COUNT 5 -static const pin_t backlight_pins[BACKLIGHT_PIN_COUNT] = { C2, C7, D5, D6, B0 }; - -void backlight_init_ports(void) { - for (uint8_t index = 0; index < BACKLIGHT_PIN_COUNT; index++) { - setPinOutput(backlight_pins[index]); - } -} - -void backlight_set_value(uint8_t index, uint8_t level) { - writePin(backlight_pins[index], !!level); -} - -void backlight_set(uint8_t level) { - for (uint8_t index = 0; index < BACKLIGHT_PIN_COUNT; index++) { - backlight_set_value(index, level); - } -} - -#endif //BACKLIGHT_ENABLE diff --git a/keyboards/staryu/staryu.h b/keyboards/staryu/staryu.h deleted file mode 100755 index f404dff284..0000000000 --- a/keyboards/staryu/staryu.h +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2018 Cole Markham - -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( \ - K00, K01, \ - K10, K11, K12 \ -) { \ - { K00, K01, K12, K11, K10 }, \ -} - - -#ifdef BACKLIGHT_ENABLE - -void backlight_set_value(uint8_t index, uint8_t level); - -#endif |