diff options
Diffstat (limited to 'keyboards/glenpickle/chimera_ortho')
-rw-r--r-- | keyboards/glenpickle/chimera_ortho/chimera_ortho.c | 16 | ||||
-rw-r--r-- | keyboards/glenpickle/chimera_ortho/chimera_ortho.h | 61 | ||||
-rw-r--r-- | keyboards/glenpickle/chimera_ortho/config.h | 48 | ||||
-rw-r--r-- | keyboards/glenpickle/chimera_ortho/info.json | 62 | ||||
-rw-r--r-- | keyboards/glenpickle/chimera_ortho/keymaps/default/config.h | 5 | ||||
-rw-r--r-- | keyboards/glenpickle/chimera_ortho/matrix.c | 72 | ||||
-rw-r--r-- | keyboards/glenpickle/chimera_ortho/readme.md | 19 | ||||
-rw-r--r-- | keyboards/glenpickle/chimera_ortho/rules.mk | 23 |
8 files changed, 0 insertions, 306 deletions
diff --git a/keyboards/glenpickle/chimera_ortho/chimera_ortho.c b/keyboards/glenpickle/chimera_ortho/chimera_ortho.c deleted file mode 100644 index 2cdc3d9331..0000000000 --- a/keyboards/glenpickle/chimera_ortho/chimera_ortho.c +++ /dev/null @@ -1,16 +0,0 @@ -#include "chimera_ortho.h" - -void led_init(void) { - DDRD |= (1<<1); - PORTD |= (1<<1); - DDRF |= (1<<4) | (1<<5); - PORTF |= (1<<4) | (1<<5); -} - - -void matrix_init_kb(void) { - // put your keyboard start-up code here - // runs once when the firmware starts up - matrix_init_user(); - led_init(); -} diff --git a/keyboards/glenpickle/chimera_ortho/chimera_ortho.h b/keyboards/glenpickle/chimera_ortho/chimera_ortho.h deleted file mode 100644 index 03384c9b28..0000000000 --- a/keyboards/glenpickle/chimera_ortho/chimera_ortho.h +++ /dev/null @@ -1,61 +0,0 @@ -#pragma once - -#include "quantum.h" - -#define red_led_off PORTF |= (1<<5) -#define red_led_on PORTF &= ~(1<<5) -#define blu_led_off PORTF |= (1<<4) -#define blu_led_on PORTF &= ~(1<<4) -#define grn_led_off PORTD |= (1<<1) -#define grn_led_on PORTD &= ~(1<<1) - -#define set_led_off red_led_off; grn_led_off; blu_led_off -#define set_led_red red_led_on; grn_led_off; blu_led_off -#define set_led_blue red_led_off; grn_led_off; blu_led_on -#define set_led_green red_led_off; grn_led_on; blu_led_off -#define set_led_yellow red_led_on; grn_led_on; blu_led_off -#define set_led_magenta red_led_on; grn_led_off; blu_led_on -#define set_led_cyan red_led_off; grn_led_on; blu_led_on -#define set_led_white red_led_on; grn_led_on; blu_led_on - -/* -#define LED_B 5 -#define LED_R 6 -#define LED_G 7 - -#define all_leds_off PORTF &= ~(1<<LED_B) & ~(1<<LED_R) & ~(1<<LED_G) - -#define red_led_on PORTF |= (1<<LED_R) -#define red_led_off PORTF &= ~(1<<LED_R) -#define grn_led_on PORTF |= (1<<LED_G) -#define grn_led_off PORTF &= ~(1<<LED_G) -#define blu_led_on PORTF |= (1<<LED_B) -#define blu_led_off PORTF &= ~(1<<LED_B) - -#define set_led_off PORTF &= ~(1<<LED_B) & ~(1<<LED_R) & ~(1<<LED_G) -#define set_led_red PORTF = PORTF & ~(1<<LED_B) & ~(1<<LED_G) | (1<<LED_R) -#define set_led_blue PORTF = PORTF & ~(1<<LED_G) & ~(1<<LED_R) | (1<<LED_B) -#define set_led_green PORTF = PORTF & ~(1<<LED_B) & ~(1<<LED_R) | (1<<LED_G) -#define set_led_yellow PORTF = PORTF & ~(1<<LED_B) | (1<<LED_R) | (1<<LED_G) -#define set_led_magenta PORTF = PORTF & ~(1<<LED_G) | (1<<LED_R) | (1<<LED_B) -#define set_led_cyan PORTF = PORTF & ~(1<<LED_R) | (1<<LED_B) | (1<<LED_G) -#define set_led_white PORTF |= (1<<LED_B) | (1<<LED_R) | (1<<LED_G) -*/ - -#define XXX KC_NO - -// This a shortcut to help you visually see your layout. -// The first section contains all of the arguements -// The second converts the arguments into a two-dimensional array -#define LAYOUT( \ - k43, k00, k01, k02, k03, k04, k31, k38, k05, k06, k07, k08, k09, k46, \ - k42, k10, k11, k12, k13, k14, k32, k37, k15, k16, k17, k18, k19, k47, \ - k41, k20, k21, k22, k23, k24, k33, k36, k25, k26, k27, k28, k29, k48, \ - k44, k34, k35, k45 \ -) { \ - { k00, 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 }, \ - { XXX, k31, k32, k33, k34, k35, k36, k37, k38, XXX }, \ - { XXX, k41, k42, k43, k44, k45, k46, k47, k48, XXX } \ -} diff --git a/keyboards/glenpickle/chimera_ortho/config.h b/keyboards/glenpickle/chimera_ortho/config.h deleted file mode 100644 index 1310866fbb..0000000000 --- a/keyboards/glenpickle/chimera_ortho/config.h +++ /dev/null @@ -1,48 +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 5 -#define MATRIX_COLS 10 - -/* define if matrix has ghost */ -//#define MATRIX_HAS_GHOST - -/* number of backlight levels */ -//#define BACKLIGHT_LEVELS 3 - -#define ONESHOT_TIMEOUT 500 - -/* - * 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/glenpickle/chimera_ortho/info.json b/keyboards/glenpickle/chimera_ortho/info.json deleted file mode 100644 index ac4ecfb201..0000000000 --- a/keyboards/glenpickle/chimera_ortho/info.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "keyboard_name": "Chimera Ortho", - "manufacturer": "Unknown", - "maintainer": "qmk", - "usb": { - "vid": "0xFEED", - "pid": "0x6060", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT": { - "layout": [ - {"label": "Esc", "x": 0, "y": 0}, - {"label": "Q", "x": 1, "y": 0}, - {"label": "W", "x": 2, "y": 0}, - {"label": "E", "x": 3, "y": 0}, - {"label": "R", "x": 4, "y": 0}, - {"label": "T", "x": 5, "y": 0}, - {"label": "{", "x": 6, "y": 0}, - {"label": "}", "x": 8.5, "y": 0}, - {"label": "Y", "x": 9.5, "y": 0}, - {"label": "U", "x": 10.5, "y": 0}, - {"label": "I", "x": 11.5, "y": 0}, - {"label": "O", "x": 12.5, "y": 0}, - {"label": "P", "x": 13.5, "y": 0}, - {"label": "\"", "x": 14.5, "y": 0}, - {"label": "Tab", "x": 0, "y": 1}, - {"label": "A", "x": 1, "y": 1}, - {"label": "S", "x": 2, "y": 1}, - {"label": "D", "x": 3, "y": 1}, - {"label": "F", "x": 4, "y": 1}, - {"label": "G", "x": 5, "y": 1}, - {"label": "-", "x": 6, "y": 1}, - {"label": "1", "x": 8.5, "y": 1}, - {"label": "H", "x": 9.5, "y": 1}, - {"label": "J", "x": 10.5, "y": 1}, - {"label": "K", "x": 11.5, "y": 1}, - {"label": "L", "x": 12.5, "y": 1}, - {"label": ";", "x": 13.5, "y": 1}, - {"label": "Enter", "x": 14.5, "y": 1}, - {"label": "(", "x": 0, "y": 2}, - {"label": "Z", "x": 1, "y": 2}, - {"label": "X", "x": 2, "y": 2}, - {"label": "C", "x": 3, "y": 2}, - {"label": "V", "x": 4, "y": 2}, - {"label": "B", "x": 5, "y": 2}, - {"label": "=", "x": 6, "y": 2}, - {"label": "8", "x": 8.5, "y": 2}, - {"label": "N", "x": 9.5, "y": 2}, - {"label": "M", "x": 10.5, "y": 2}, - {"label": ", ", "x": 11.5, "y": 2}, - {"label": ".", "x": 12.5, "y": 2}, - {"label": "/", "x": 13.5, "y": 2}, - {"label": ")", "x": 14.5, "y": 2}, - {"label": "Num Layer", "x": 4, "y": 3.25}, - {"label": "Back Space", "x": 5, "y": 3.25}, - {"label": "Space", "x": 9.5, "y": 3.25}, - {"label": "Symbol Layer", "x": 10.5, "y": 3.25} - ] - } - } -} diff --git a/keyboards/glenpickle/chimera_ortho/keymaps/default/config.h b/keyboards/glenpickle/chimera_ortho/keymaps/default/config.h deleted file mode 100644 index bdfd4db80f..0000000000 --- a/keyboards/glenpickle/chimera_ortho/keymaps/default/config.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -// place overrides here -#define LONGPRESS_DELAY 150 -//#define LAYER_TOGGLE_DELAY 300 diff --git a/keyboards/glenpickle/chimera_ortho/matrix.c b/keyboards/glenpickle/chimera_ortho/matrix.c deleted file mode 100644 index 9a69724eb7..0000000000 --- a/keyboards/glenpickle/chimera_ortho/matrix.c +++ /dev/null @@ -1,72 +0,0 @@ -/* -Copyright 2012 Jun Wako -Copyright 2014 Jack Humbert - -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 "quantum.h" -#include "matrix.h" -#include "uart.h" - -#define UART_MATRIX_RESPONSE_TIMEOUT 10000 - -void matrix_init_custom(void) { - uart_init(1000000); -} - -bool matrix_scan_custom(matrix_row_t current_matrix[]) { - uint32_t timeout = 0; - bool changed = false; - - //the s character requests the RF slave to send the matrix - uart_write('s'); - - //trust the external keystates entirely, erase the last data - uint8_t uart_data[11] = {0}; - - //there are 10 bytes corresponding to 10 columns, and an end byte - for (uint8_t i = 0; i < 11; i++) { - //wait for the serial data, timeout if it's been too long - //this only happened in testing with a loose wire, but does no - //harm to leave it in here - while (!uart_available()) { - timeout++; - if (timeout > UART_MATRIX_RESPONSE_TIMEOUT) { - break; - } - } - - if (timeout < UART_MATRIX_RESPONSE_TIMEOUT) { - uart_data[i] = uart_read(); - } else { - uart_data[i] = 0x00; - } - } - - //check for the end packet, the key state bytes use the LSBs, so 0xE0 - //will only show up here if the correct bytes were recieved - if (uart_data[10] == 0xE0) { - //shifting and transferring the keystates to the QMK matrix variable - for (uint8_t i = 0; i < MATRIX_ROWS; i++) { - matrix_row_t current_row = (uint16_t) uart_data[i * 2] | (uint16_t) uart_data[i * 2 + 1] << 5; - if (current_matrix[i] != current_row) { - changed = true; - } - current_matrix[i] = current_row; - } - } - - return changed; -} diff --git a/keyboards/glenpickle/chimera_ortho/readme.md b/keyboards/glenpickle/chimera_ortho/readme.md deleted file mode 100644 index bff001d3c9..0000000000 --- a/keyboards/glenpickle/chimera_ortho/readme.md +++ /dev/null @@ -1,19 +0,0 @@ -# Chimera Ortho - -![Chimera Ortho](https://imgur.com/pbdNsoP.jpg) - -A split wireless 40% ortholinear keyboard - -Keyboard Maintainer: [William Wilson](https://github.com/GlenPickle) - - -Hardware Supported: Chimera Ortho PCB, WaveShare core nRF51822 - -Hardware Availability: [Gerbers](https://github.com/GlenPickle/Chimera/tree/master/ortho/gerbers) - -Make example for this keyboard (after setting up your build environment): - - make glenpickle/chimera_ortho: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/glenpickle/chimera_ortho/rules.mk b/keyboards/glenpickle/chimera_ortho/rules.mk deleted file mode 100644 index 8cb1736147..0000000000 --- a/keyboards/glenpickle/chimera_ortho/rules.mk +++ /dev/null @@ -1,23 +0,0 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = caterina - -# 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 = yes # Console for debug -COMMAND_ENABLE = yes # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -CUSTOM_MATRIX = lite - -# project specific files -SRC += matrix.c -QUANTUM_LIB_SRC += uart.c |