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/sixkeyboard | |
parent | fe13cedf8c09fa34d5cec4e4c624738095176625 (diff) |
Remove non-Keychron keyboards
Diffstat (limited to 'keyboards/sixkeyboard')
-rw-r--r-- | keyboards/sixkeyboard/.noci | 0 | ||||
-rw-r--r-- | keyboards/sixkeyboard/config.h | 57 | ||||
-rw-r--r-- | keyboards/sixkeyboard/info.json | 16 | ||||
-rw-r--r-- | keyboards/sixkeyboard/keymaps/default/keymap.c | 18 | ||||
-rw-r--r-- | keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c | 42 | ||||
-rw-r--r-- | keyboards/sixkeyboard/keymaps/semicolonsnet/readme.md | 29 | ||||
-rw-r--r-- | keyboards/sixkeyboard/keymaps/via/keymap.c | 39 | ||||
-rw-r--r-- | keyboards/sixkeyboard/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/sixkeyboard/matrix.c | 131 | ||||
-rw-r--r-- | keyboards/sixkeyboard/readme.md | 29 | ||||
-rw-r--r-- | keyboards/sixkeyboard/rules.mk | 21 | ||||
-rw-r--r-- | keyboards/sixkeyboard/sixkeyboard.c | 30 | ||||
-rw-r--r-- | keyboards/sixkeyboard/sixkeyboard.h | 18 |
13 files changed, 0 insertions, 432 deletions
diff --git a/keyboards/sixkeyboard/.noci b/keyboards/sixkeyboard/.noci deleted file mode 100644 index e69de29bb2..0000000000 --- a/keyboards/sixkeyboard/.noci +++ /dev/null diff --git a/keyboards/sixkeyboard/config.h b/keyboards/sixkeyboard/config.h deleted file mode 100644 index f9379f5720..0000000000 --- a/keyboards/sixkeyboard/config.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -Copyright 2012 Jun Wako <wakojun@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 "config_common.h" - -/* key matrix size */ -#define MATRIX_ROWS 2 -#define MATRIX_COLS 3 - -/* define if matrix has ghost */ -//#define MATRIX_HAS_GHOST - -/* number of backlight levels */ -#define BACKLIGHT_LEVELS 0 - -/* Set 0 if debouncing isn't 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 - -/* Force NKRO Mode - If forced on, must be disabled via magic key (default = LShift+RShift+N) */ -#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 diff --git a/keyboards/sixkeyboard/info.json b/keyboards/sixkeyboard/info.json deleted file mode 100644 index 2c9206fcbf..0000000000 --- a/keyboards/sixkeyboard/info.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "keyboard_name": "SixKeyBoard", - "manufacturer": "TechKeys", - "url": "", - "maintainer": "qmk", - "usb": { - "vid": "0x746B", - "pid": "0x736B", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT_ortho_2x3": { - "layout": [{"label":"k00", "x":0, "y":0}, {"label":"k01", "x":1, "y":0}, {"label":"k02", "x":2, "y":0}, {"label":"k10", "x":0, "y":1}, {"label":"k11", "x":1, "y":1}, {"label":"k12", "x":2, "y":1}] - } - } -} diff --git a/keyboards/sixkeyboard/keymaps/default/keymap.c b/keyboards/sixkeyboard/keymaps/default/keymap.c deleted file mode 100644 index 7fdf3d64c1..0000000000 --- a/keyboards/sixkeyboard/keymaps/default/keymap.c +++ /dev/null @@ -1,18 +0,0 @@ - -#include QMK_KEYBOARD_H -#include "matrix.h" - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_ortho_2x3( - KC_A, KC_B, KC_C, - KC_D, KC_E, KC_F - ) -}; - -void matrix_scan_user(void) { - // jump to bootloaer when all keys are pressed - if (matrix_get_row(0) == 0b111 && matrix_get_row(1) == 0b111) { - clear_keyboard(); - bootloader_jump(); - } -}; diff --git a/keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c b/keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c deleted file mode 100644 index 86fdc90b65..0000000000 --- a/keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c +++ /dev/null @@ -1,42 +0,0 @@ -/* Copyright 2021 Chase Nordengren - * - * 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 custom_keycodes { - QMKPASS = SAFE_RANGE, -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case QMKPASS: - if (record->event.pressed) { - // when keycode QMKPASS is pressed - SEND_STRING("Sample string"); - } else { - // when keycode QMKPASS is released - } - break; - } - return true; -}; - - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT(KC_ESC, SGUI(KC_R), SGUI(KC_S), QMKPASS, SGUI(KC_A), SGUI(KC_V)) -}; - diff --git a/keyboards/sixkeyboard/keymaps/semicolonsnet/readme.md b/keyboards/sixkeyboard/keymaps/semicolonsnet/readme.md deleted file mode 100644 index e791b12a65..0000000000 --- a/keyboards/sixkeyboard/keymaps/semicolonsnet/readme.md +++ /dev/null @@ -1,29 +0,0 @@ -Techkeys SixKeyBoard -=== - -Keyboard Maintainer: QMK Community -Hardware Supported: Techkeys SixKeyBoard PCB -Hardware Availability: [Techkeys](http://techkeys.us/collections/accessories/products/sixkeyboard) - -Make example for this keyboard (after setting up your build environment): - - make sixkeyboard:semicolonsnet - -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. - -## Hardware Info - -The schematic is like this: - -``` - switches leds -,--+--+--. ,--+--+--. -|C7|B7|B5| |C6|B6|B4| -+--+--+--+ +--+--+--+ -|D6|D1|D4| |D5|D2|D3| -`--+--+--' `--+--+--' -``` - -The LED on the bottom is `C4`. All 7 of the leds are turned on when the keyboard boots-up in the `sixkeyboard.c` file - backlight_enable is not required. The MCU is an Atmega16u2, so the flash memory is limited to 0x3000 bytes - the current setup uses just about all of that! I'm sure things can be opitimised a bit. - -There is a jumper on the bottom of the board (next to the USB port) that serves as a reset button - I drilled a hole in my case to allow for quick access via a screwdriver/metal object. diff --git a/keyboards/sixkeyboard/keymaps/via/keymap.c b/keyboards/sixkeyboard/keymaps/via/keymap.c deleted file mode 100644 index 39282b9b5a..0000000000 --- a/keyboards/sixkeyboard/keymaps/via/keymap.c +++ /dev/null @@ -1,39 +0,0 @@ -/* Copyright 2020 - * - * 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_ortho_2x3( - KC_A, KC_B, KC_C, - KC_D, KC_E, KC_F - ), - - [1] = LAYOUT_ortho_2x3( - KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS - ), - - [2] = LAYOUT_ortho_2x3( - KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS - ), - - [3] = LAYOUT_ortho_2x3( - KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS - ) -}; diff --git a/keyboards/sixkeyboard/keymaps/via/rules.mk b/keyboards/sixkeyboard/keymaps/via/rules.mk deleted file mode 100644 index 43061db1dd..0000000000 --- a/keyboards/sixkeyboard/keymaps/via/rules.mk +++ /dev/null @@ -1,2 +0,0 @@ -VIA_ENABLE = yes -LTO_ENABLE = yes
\ No newline at end of file diff --git a/keyboards/sixkeyboard/matrix.c b/keyboards/sixkeyboard/matrix.c deleted file mode 100644 index 36ae05fb42..0000000000 --- a/keyboards/sixkeyboard/matrix.c +++ /dev/null @@ -1,131 +0,0 @@ -/* - -Copyright 2013 Oleg Kostyuk <cub.uanic@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/>. -*/ - -/* - * scan matrix - */ -#include <stdint.h> -#include <stdbool.h> -#include <avr/io.h> -#include <util/delay.h> -#include "action_layer.h" -#include "print.h" -#include "debug.h" -#include "util.h" -#include "matrix.h" -#include "sixkeyboard.h" -#include <string.h> - -/* matrix state(1:on, 0:off) */ -static matrix_row_t matrix[MATRIX_ROWS]; -static matrix_row_t matrix_stage[MATRIX_ROWS]; -static matrix_row_t matrix_debouncing[MATRIX_ROWS]; - -static uint16_t debouncing_time; -static bool debouncing = false; - -__attribute__ ((weak)) -void matrix_init_kb(void) { - matrix_init_user(); -} - -__attribute__ ((weak)) -void matrix_scan_kb(void) { - matrix_scan_user(); -} - -__attribute__ ((weak)) -void matrix_init_user(void) { -} - -__attribute__ ((weak)) -void matrix_scan_user(void) { -} - -inline -uint8_t matrix_rows(void) -{ - return MATRIX_ROWS; -} - -inline -uint8_t matrix_cols(void) -{ - return MATRIX_COLS; -} - -void matrix_init(void) -{ - - DDRC &= ~(1<<7); - PORTC |= (1<<7); - DDRB &= ~(1<<7 | 1<<5); - PORTB |= (1<<7 | 1<<5); - DDRD &= ~(1<<6 | 1<<4 | 1<<1); - PORTD |= (1<<6 | 1<<4 | 1<<1); - - for (uint8_t i=0; i < MATRIX_ROWS; i++) { - matrix[i] = 0; - matrix_debouncing[i] = 0; - matrix_stage[i] = 0; - } - - matrix_init_quantum(); - -} - -uint8_t matrix_scan(void) -{ - matrix_stage[0] = (PINC&(1<<7) ? 0 : (1<<0)) | (PINB&(1<<7) ? 0 : (1<<1)) | (PINB&(1<<5) ? 0 : (1<<2)); - matrix_stage[1] = (PIND&(1<<6) ? 0 : (1<<0)) | (PIND&(1<<1) ? 0 : (1<<1)) | (PIND&(1<<4) ? 0 : (1<<2)); - - if (memcmp(matrix_debouncing, matrix_stage, sizeof(matrix)) != 0) { - debouncing = true; - debouncing_time = timer_read(); - } - - matrix_debouncing[0] = matrix_stage[0]; - matrix_debouncing[1] = matrix_stage[1]; - - if (debouncing && (timer_elapsed(debouncing_time) > 20)) { - for (uint8_t i = 0; i < MATRIX_ROWS; i++) { - matrix[i] = matrix_debouncing[i]; - } - debouncing = false; - } - - matrix_scan_quantum(); - - return 1; -} - -inline -bool matrix_is_on(uint8_t row, uint8_t col) -{ - return (matrix[row] & ((matrix_row_t)1<<col)); -} - -inline -matrix_row_t matrix_get_row(uint8_t row) -{ - return matrix[row]; -} - -void matrix_print(void) -{ -} diff --git a/keyboards/sixkeyboard/readme.md b/keyboards/sixkeyboard/readme.md deleted file mode 100644 index 6979e1d48c..0000000000 --- a/keyboards/sixkeyboard/readme.md +++ /dev/null @@ -1,29 +0,0 @@ -Techkeys SixKeyBoard -=== - -Keyboard Maintainer: QMK Community -Hardware Supported: Techkeys SixKeyBoard PCB -Hardware Availability: [Techkeys](http://techkeys.us/collections/accessories/products/sixkeyboard) - -Make example for this keyboard (after setting up your build environment): - - make sixkeyboard: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. - -## Hardware Info - -The schematic is like this: - -``` - switches leds -,--+--+--. ,--+--+--. -|C7|B7|B5| |C6|B6|B4| -+--+--+--+ +--+--+--+ -|D6|D1|D4| |D5|D2|D3| -`--+--+--' `--+--+--' -``` - -The LED on the bottom is `C4`. All 7 of the leds are turned on when the keyboard boots-up in the `sixkeyboard.c` file - backlight_enable is not required. The MCU is an Atmega16u2, so the flash memory is limited to 0x3000 bytes - the current setup uses just about all of that! I'm sure things can be opitimised a bit. - -There is a jumper on the bottom of the board (next to the USB port) that serves as a reset button - I drilled a hole in my case to allow for quick access via a screwdriver/metal object. diff --git a/keyboards/sixkeyboard/rules.mk b/keyboards/sixkeyboard/rules.mk deleted file mode 100644 index 3e1b51fa86..0000000000 --- a/keyboards/sixkeyboard/rules.mk +++ /dev/null @@ -1,21 +0,0 @@ -# MCU name -MCU = atmega16u2 - -# Bootloader selection -BOOTLOADER = atmel-dfu - -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = no # Mouse keys -EXTRAKEY_ENABLE = no # 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 -AUDIO_ENABLE = no -CUSTOM_MATRIX = yes - -SRC += matrix.c -LAYOUTS = ortho_2x3 diff --git a/keyboards/sixkeyboard/sixkeyboard.c b/keyboards/sixkeyboard/sixkeyboard.c deleted file mode 100644 index 85190f6167..0000000000 --- a/keyboards/sixkeyboard/sixkeyboard.c +++ /dev/null @@ -1,30 +0,0 @@ -#include "sixkeyboard.h" - -void matrix_init_kb(void) { - // put your keyboard start-up code here - // runs once when the firmware starts up - - DDRC |= (1<<4); - PORTC &= ~(1<<4); - - - DDRC |= (1<<6); - PORTC &= ~(1<<6); - - DDRB |= (1<<6); - PORTB &= ~(1<<6); - - DDRB |= (1<<4); - PORTB &= ~(1<<4); - - DDRD |= (1<<5); - PORTD &= ~(1<<5); - - DDRD |= (1<<2); - PORTD &= ~(1<<2); - - DDRD |= (1<<3); - PORTD &= ~(1<<3); - - matrix_init_user(); -};
\ No newline at end of file diff --git a/keyboards/sixkeyboard/sixkeyboard.h b/keyboards/sixkeyboard/sixkeyboard.h deleted file mode 100644 index 3f563af6d1..0000000000 --- a/keyboards/sixkeyboard/sixkeyboard.h +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -#include "quantum.h" - -/* - * ┌───┬───┬───┐ - * │ A │ B │ C │ - * ├───┼───┼───┤ - * │ D │ E │ F │ - * └───┴───┴───┘ - */ -#define LAYOUT_ortho_2x3( \ - k00, k01, k02, \ - k10, k11, k12 \ -) { \ - { k00, k01, k02 }, \ - { k10, k11, k12 } \ -} |