diff options
author | lokher <lokher@gmail.com> | 2022-09-13 11:24:05 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-09-13 11:24:05 +0800 |
commit | 9581289745736ce068a1040f44cec37a2ca8830d (patch) | |
tree | 24f644715a5fd6cc4d804d9604fb094307808b1b /keyboards/ai03/orbit | |
parent | fe13cedf8c09fa34d5cec4e4c624738095176625 (diff) |
Remove non-Keychron keyboards
Diffstat (limited to 'keyboards/ai03/orbit')
-rw-r--r-- | keyboards/ai03/orbit/config.h | 138 | ||||
-rw-r--r-- | keyboards/ai03/orbit/info.json | 92 | ||||
-rw-r--r-- | keyboards/ai03/orbit/keymaps/default/keymap.c | 62 | ||||
-rw-r--r-- | keyboards/ai03/orbit/keymaps/default/readme.md | 3 | ||||
-rw-r--r-- | keyboards/ai03/orbit/orbit.c | 138 | ||||
-rw-r--r-- | keyboards/ai03/orbit/orbit.h | 52 | ||||
-rw-r--r-- | keyboards/ai03/orbit/readme.md | 15 | ||||
-rw-r--r-- | keyboards/ai03/orbit/rules.mk | 19 |
8 files changed, 0 insertions, 519 deletions
diff --git a/keyboards/ai03/orbit/config.h b/keyboards/ai03/orbit/config.h deleted file mode 100644 index 3cd0895788..0000000000 --- a/keyboards/ai03/orbit/config.h +++ /dev/null @@ -1,138 +0,0 @@ -/* -Copyright 2018 Ryota Goto - -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" - -/* key matrix size */ -#define MATRIX_ROWS 10 // Double rows for split keyboards. Orbit has 5, so define 10 -#define MATRIX_COLS 7 - -/* - * 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) - * -*/ -#define MATRIX_ROW_PINS { F7, F6, F5, F4, D3 } -#define MATRIX_COL_PINS { C7, B4, D7, D6, D4, F1, F0 } -#define MATRIX_ROW_PINS_RIGHT { B6, B5, B4, D7, E6 } -#define MATRIX_COL_PINS_RIGHT { D4, D6, F1, F0, F4, F5, C6 } - -/* COL2ROW, ROW2COL */ -#define DIODE_DIRECTION COL2ROW - -/* - * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. - */ -#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 -#define SELECT_SOFT_SERIAL_SPEED 1 - -#define SPLIT_LED_STATE_ENABLE -#define SPLIT_LAYER_STATE_ENABLE - -#define SPLIT_HAND_PIN D5 - -#define BACKLIGHT_PIN B7 -// #define BACKLIGHT_BREATHING -#define BACKLIGHT_LEVELS 3 - -// #define RGB_DI_PIN E2 -// #ifdef RGB_DI_PIN -// #define RGBLED_NUM 16 -// #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 - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - -/* define if matrix has ghost (lacks anti-ghosting diodes) */ -//#define MATRIX_HAS_GHOST - -/* number of backlight levels */ - -/* 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 - -/* If defined, GRAVE_ESC will always act as ESC when CTRL is held. - * This is userful for the Windows task manager shortcut (ctrl+shift+esc). - */ -// #define GRAVE_ESC_CTRL_OVERRIDE - -/* - * Force NKRO - * - * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved - * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the - * makefile for this to work.) - * - * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) - * until the next keyboard reset. - * - * NKRO may prevent your keystrokes from being detected in the BIOS, but it is - * fully operational during normal computer usage. - * - * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) - * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by - * bootmagic, NKRO mode will always be enabled until it is toggled again during a - * power-up. - * - */ -//#define FORCE_NKRO - -/* - * 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 - -/* Bootmagic Lite key configuration */ -// #define BOOTMAGIC_LITE_ROW 0 -// #define BOOTMAGIC_LITE_COLUMN 0 diff --git a/keyboards/ai03/orbit/info.json b/keyboards/ai03/orbit/info.json deleted file mode 100644 index 9deccb9a30..0000000000 --- a/keyboards/ai03/orbit/info.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "keyboard_name": "Orbit", - "manufacturer": "ai03 Keyboard Designs", - "url": "https://github.com/ai03-2725/Orbit", - "maintainer": "ai03", - "usb": { - "vid": "0xA103", - "pid": "0x0003", - "device_version": "0.0.3" - }, - "layouts": { - "LAYOUT": { - "layout": [ - {"x":0, "y":0.63}, - {"x":1, "y":0.38}, - {"x":2, "y":0.38}, - {"x":3, "y":0.13}, - {"x":4, "y":0}, - {"x":5, "y":0.13}, - {"x":6, "y":0.25}, - {"x":9, "y":0.25}, - {"x":10, "y":0.13}, - {"x":11, "y":0}, - {"x":12, "y":0.13}, - {"x":13, "y":0.38}, - {"x":14, "y":0.38}, - {"x":15, "y":0.63}, - - {"x":0, "y":1.63}, - {"x":1, "y":1.38}, - {"x":2, "y":1.38}, - {"x":3, "y":1.13}, - {"x":4, "y":1}, - {"x":5, "y":1.13}, - {"x":6, "y":1.25}, - {"x":9, "y":1.25}, - {"x":10, "y":1.13}, - {"x":11, "y":1}, - {"x":12, "y":1.13}, - {"x":13, "y":1.38}, - {"x":14, "y":1.38}, - {"x":15, "y":1.63}, - - {"x":0, "y":2.63}, - {"x":1, "y":2.38}, - {"x":2, "y":2.38}, - {"x":3, "y":2.13}, - {"x":4, "y":2}, - {"x":5, "y":2.13}, - {"x":6, "y":2.25}, - {"x":9, "y":2.25}, - {"x":10, "y":2.13}, - {"x":11, "y":2}, - {"x":12, "y":2.13}, - {"x":13, "y":2.38}, - {"x":14, "y":2.38}, - {"x":15, "y":2.63}, - - {"x":0, "y":3.63}, - {"x":1, "y":3.38}, - {"x":2, "y":3.38}, - {"x":3, "y":3.13}, - {"x":4, "y":3}, - {"x":5, "y":3.13}, - {"x":6, "y":3.25}, - {"x":9, "y":3.25}, - {"x":10, "y":3.13}, - {"x":11, "y":3}, - {"x":12, "y":3.13}, - {"x":13, "y":3.38}, - {"x":14, "y":3.38}, - {"x":15, "y":3.63}, - - {"x":1, "y":4.38}, - {"x":2, "y":4.38}, - {"x":3, "y":4.13}, - {"x":4, "y":4}, - - {"x":5.5, "y":4.25}, - {"x":6.5, "y":4.5, "h":1.5}, - - {"x":8.5, "y":4.5, "h":1.5}, - {"x":9.5, "y":4.25}, - - {"x":11, "y":4}, - {"x":12, "y":4.13}, - {"x":13, "y":4.38}, - {"x":14, "y":4.38} - ] - } - } -} diff --git a/keyboards/ai03/orbit/keymaps/default/keymap.c b/keyboards/ai03/orbit/keymaps/default/keymap.c deleted file mode 100644 index c9696ccde6..0000000000 --- a/keyboards/ai03/orbit/keymaps/default/keymap.c +++ /dev/null @@ -1,62 +0,0 @@ -/* Copyright 2018 Ryota Goto - * - * 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 - -// Defines the keycodes used by our macros in process_record_user -enum custom_keycodes { - MANUAL = SAFE_RANGE, - DBLZERO -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT( /* Base */ - TO(1), KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_LBRC, KC_BSPC, - TO(1), KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_RBRC, KC_BSLS, - KC_NO, 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_NO, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_PSCR, KC_DEL, - KC_LCTL, KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_SPC, MO(2), KC_GRV, KC_MENU, KC_MINS, KC_EQL - ), - [1] = LAYOUT( /* Fn, Arrowkeys, Media control, Backlight */ - TO(2), _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_VOLU, _______, - TO(2), _______, _______, KC_PGUP, _______, _______, KC_F11, KC_F12, _______, KC_UP, _______, _______, KC_VOLD, BL_STEP, - TO(0), _______, KC_HOME, KC_PGDN, KC_END, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_MPLY, _______, - TO(0), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [2] = LAYOUT( /* Mousekeys and Numpad */ - KC_NO, _______, _______, _______, _______, _______, _______, KC_NLCK, KC_P7, KC_P8, KC_P9, KC_PSLS, _______, _______, - KC_NO, _______, KC_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, _______, _______, KC_P4, KC_P5, KC_P6, KC_PAST, _______, _______, - TO(1), _______, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, _______, _______, KC_P1, KC_P2, KC_P3, KC_PMNS, _______, _______, - TO(1), _______, KC_ACL0, KC_ACL1, KC_ACL2, KC_BTN3, _______, DBLZERO, KC_P0, KC_PDOT, KC_PENT, KC_PPLS, _______, MANUAL, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ) -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case MANUAL: - if (record->event.pressed) { - SEND_STRING("https://kb.ai03.me/redir/orbit"); - } - break; - case DBLZERO: - if (record->event.pressed) { - SEND_STRING("00"); - } - break; - } - return true; -} diff --git a/keyboards/ai03/orbit/keymaps/default/readme.md b/keyboards/ai03/orbit/keymaps/default/readme.md deleted file mode 100644 index 63c528abfa..0000000000 --- a/keyboards/ai03/orbit/keymaps/default/readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# The default keymap for Orbit - -[KLE of layout](http://www.keyboard-layout-editor.com/#/gists/53ebf59524de12515cb7e2e6de94f0d6)
\ No newline at end of file diff --git a/keyboards/ai03/orbit/orbit.c b/keyboards/ai03/orbit/orbit.c deleted file mode 100644 index 5097f9cd90..0000000000 --- a/keyboards/ai03/orbit/orbit.c +++ /dev/null @@ -1,138 +0,0 @@ -/* Copyright 2018 Ryota Goto - * - * 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 "orbit.h" -#include "split_util.h" - -void led_init_ports(void) { - // Initialize indicator LEDs to output - if (isLeftHand) { - setPinOutput(C6); - setPinOutput(B6); - setPinOutput(B5); - } else { - setPinOutput(F6); - setPinOutput(F7); - setPinOutput(C7); - } - - set_layer_indicators(0); -} - -// Call led_toggle to set LEDs easily -// LED IDs: -// -// (LEFT) 0 1 2 | 3 4 5 (RIGHT) -void led_toggle(uint8_t id, bool on) { - if (isLeftHand) { - switch (id) { - case 0: - // Left hand C6 - writePin(C6, on); - break; - case 1: - // Left hand B6 - writePin(B6, on); - break; - case 2: - // Left hand B5 - writePin(B5, on); - break; - default: - break; - } - } else { - switch (id) { - case 3: - // Right hand F6 - writePin(F6, on); - break; - case 4: - // Right hand F7 - writePin(F7, on); - break; - case 5: - // Right hand C7 - writePin(C7, on); - break; - default: - break; - } - } -} - -// Set all LEDs at once using an array of 6 booleans -// LED IDs: -// -// (LEFT) 0 1 2 | 3 4 5 (RIGHT) -// -// Ex. set_all_leds({ false, false, false, true, true, true }) would turn off left hand, turn on right hand - -void set_all_leds(bool leds[6]) { - for (int i = 0; i < 6; i++) { - led_toggle(i, leds[i]); - } -} - -void set_layer_indicators(uint8_t layer) { - switch (layer) { - case 0: - led_toggle(0, true); - led_toggle(1, false); - led_toggle(2, false); - break; - case 1: - led_toggle(0, true); - led_toggle(1, true); - led_toggle(2, false); - break; - case 2: - led_toggle(0, true); - led_toggle(1, true); - led_toggle(2, true); - break; - case 3: - led_toggle(0, false); - led_toggle(1, true); - led_toggle(2, true); - break; - case 4: - led_toggle(0, false); - led_toggle(1, false); - led_toggle(2, true); - break; - default: - led_toggle(0, true); - led_toggle(1, false); - led_toggle(2, true); - break; - } -} - -bool led_update_kb(led_t led_state) { - bool res = led_update_user(led_state); - if (res) { - led_toggle(3, led_state.num_lock); - led_toggle(4, led_state.caps_lock); - led_toggle(5, led_state.scroll_lock); - } - return res; -} - -layer_state_t layer_state_set_kb(layer_state_t state) { - set_layer_indicators(get_highest_layer(state)); - - return layer_state_set_user(state); -} diff --git a/keyboards/ai03/orbit/orbit.h b/keyboards/ai03/orbit/orbit.h deleted file mode 100644 index 7f3b1aca32..0000000000 --- a/keyboards/ai03/orbit/orbit.h +++ /dev/null @@ -1,52 +0,0 @@ -/* Copyright 2018 Ryota Goto - * - * 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 XXX KC_NO - -/* This 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. - */ -#define LAYOUT( \ - L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ - L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ - L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ - L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \ - L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45 \ -) { \ - { L00, L01, L02, L03, L04, L05, L06 }, \ - { L10, L11, L12, L13, L14, L15, L16 }, \ - { L20, L21, L22, L23, L24, L25, L26 }, \ - { L30, L31, L32, L33, L34, L35, L36 }, \ - { XXX, L41, L42, L43, L44, L45, L46 }, \ - { R00, R01, R02, R03, R04, R05, R06 }, \ - { R10, R11, R12, R13, R14, R15, R16 }, \ - { R20, R21, R22, R23, R24, R25, R26 }, \ - { R30, R31, R32, R33, R34, R35, R36 }, \ - { R40, R41, R42, R43, R44, R45, XXX } \ -} - -void led_toggle(uint8_t id, bool on); -void set_all_leds(bool leds[6]); -void set_layer_indicators(uint8_t layer); diff --git a/keyboards/ai03/orbit/readme.md b/keyboards/ai03/orbit/readme.md deleted file mode 100644 index 0c320929b6..0000000000 --- a/keyboards/ai03/orbit/readme.md +++ /dev/null @@ -1,15 +0,0 @@ -# Orbit - -![Orbit](https://raw.githubusercontent.com/ai03-2725/Orbit/master/Images/PCB-R2.0.jpg) - -A split ergonomic keyboard project. - -* Keyboard Maintainer: [ai03](https://github.com/ai03-2725) -* Hardware Supported: The [Orbit PCB](https://github.com/ai03-2725/Orbit) -* Hardware Availability: [This repository](https://github.com/ai03-2725/Orbit) has PCB files. Case group buy orders are currently closed. - -Make example for this keyboard (after setting up your build environment): - - make ai03/orbit: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/ai03/orbit/rules.mk b/keyboards/ai03/orbit/rules.mk deleted file mode 100644 index a0f1ab94a9..0000000000 --- a/keyboards/ai03/orbit/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 = no # 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 = yes # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -SPLIT_KEYBOARD = yes # Split keyboard flag disabled as manual edits had to be done to the split common files |