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/duck/orion/v3 | |
parent | fe13cedf8c09fa34d5cec4e4c624738095176625 (diff) |
Remove non-Keychron keyboards
Diffstat (limited to 'keyboards/duck/orion/v3')
-rw-r--r-- | keyboards/duck/orion/v3/config.h | 47 | ||||
-rw-r--r-- | keyboards/duck/orion/v3/indicator_leds.c | 82 | ||||
-rw-r--r-- | keyboards/duck/orion/v3/indicator_leds.h | 1 | ||||
-rw-r--r-- | keyboards/duck/orion/v3/info.json | 16 | ||||
-rw-r--r-- | keyboards/duck/orion/v3/keymaps/default/keymap.c | 34 | ||||
-rw-r--r-- | keyboards/duck/orion/v3/matrix.c | 266 | ||||
-rw-r--r-- | keyboards/duck/orion/v3/readme.md | 30 | ||||
-rw-r--r-- | keyboards/duck/orion/v3/rules.mk | 25 | ||||
-rw-r--r-- | keyboards/duck/orion/v3/v3.c | 39 | ||||
-rw-r--r-- | keyboards/duck/orion/v3/v3.h | 36 |
10 files changed, 0 insertions, 576 deletions
diff --git a/keyboards/duck/orion/v3/config.h b/keyboards/duck/orion/v3/config.h deleted file mode 100644 index 477243e495..0000000000 --- a/keyboards/duck/orion/v3/config.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -Copyright 2019 MechMerlin <mechmerlin@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 6 -#define MATRIX_COLS 18 - -#define DIODE_DIRECTION COL2ROW - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - -/* number of backlight levels */ -// #define BACKLIGHT_LEVELS 3 - -#undef BACKLIGHT_PIN -#define BACKLIGHT_PINS { B1, B2, B3, E6 } -#define BACKLIGHT_LED_COUNT 4 -#define BACKLIGHT_LEVELS 10 - -#define RGBLIGHT_ANIMATIONS -#define RGB_DI_PIN D6 -#define RGBLED_NUM 18 - -/* Set to top left most key */ -#define BOOTMAGIC_LITE_ROW 4 -#define BOOTMAGIC_LITE_COLUMN 10 - -#define TAPPING_TERM 200 diff --git a/keyboards/duck/orion/v3/indicator_leds.c b/keyboards/duck/orion/v3/indicator_leds.c deleted file mode 100644 index 951ef462c6..0000000000 --- a/keyboards/duck/orion/v3/indicator_leds.c +++ /dev/null @@ -1,82 +0,0 @@ -/* -Copyright 2019 MechMerlin <mechmerlin@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/>. -*/ -#include <avr/interrupt.h> -#include <avr/io.h> -#include <stdbool.h> -#include <util/delay.h> -#include "indicator_leds.h" -#include "duck_led/duck_led.h" - -#define LED_T1H 600 -#define LED_T1L 650 -#define LED_T0H 250 -#define LED_T0L 1000 - -void send_bit_d4(bool bitVal) { - if(bitVal) { - asm volatile ( - "sbi %[port], %[bit] \n\t" - ".rept %[onCycles] \n\t" - "nop \n\t" - ".endr \n\t" - "cbi %[port], %[bit] \n\t" - ".rept %[offCycles] \n\t" - "nop \n\t" - ".endr \n\t" - :: - [port] "I" (_SFR_IO_ADDR(PORTD)), - [bit] "I" (4), - [onCycles] "I" (NS_TO_CYCLES(LED_T1H) - 2), - [offCycles] "I" (NS_TO_CYCLES(LED_T1L) - 2)); - } else { - asm volatile ( - "sbi %[port], %[bit] \n\t" - ".rept %[onCycles] \n\t" - "nop \n\t" - ".endr \n\t" - "cbi %[port], %[bit] \n\t" - ".rept %[offCycles] \n\t" - "nop \n\t" - ".endr \n\t" - :: - [port] "I" (_SFR_IO_ADDR(PORTD)), - [bit] "I" (4), - [onCycles] "I" (NS_TO_CYCLES(LED_T0H) - 2), - [offCycles] "I" (NS_TO_CYCLES(LED_T0L) - 2)); - } -} - -void send_value(uint8_t byte, enum Device device) { - for(uint8_t b = 0; b < 8; b++) { - if(device == Device_STATUSLED) { - send_bit_d4(byte & 0b10000000); - byte <<= 1; - } - } -} - -// Send the LED indicators to the WS2811S chips -void indicator_leds_set(bool leds[8]) { - uint8_t led_cnt; - - cli(); - for(led_cnt = 0; led_cnt < 8; led_cnt++) - send_value(leds[led_cnt] ? 255 : 0, Device_STATUSLED); - sei(); - show(); -} - diff --git a/keyboards/duck/orion/v3/indicator_leds.h b/keyboards/duck/orion/v3/indicator_leds.h deleted file mode 100644 index fe66eef6b2..0000000000 --- a/keyboards/duck/orion/v3/indicator_leds.h +++ /dev/null @@ -1 +0,0 @@ -void indicator_leds_set(bool leds[8]); diff --git a/keyboards/duck/orion/v3/info.json b/keyboards/duck/orion/v3/info.json deleted file mode 100644 index 39f0e1e1bd..0000000000 --- a/keyboards/duck/orion/v3/info.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "keyboard_name": "Orion V3", - "manufacturer": "Duck", - "url": "", - "maintainer": "qmk", - "usb": { - "vid": "0x444B", - "pid": "0x4F52", - "device_version": "0.0.2" - }, - "layouts": { - "LAYOUT_tkl_ansi": { - "layout": [{"x":0, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6.5, "y":0}, {"x":7.5, "y":0}, {"x":8.5, "y":0}, {"x":9.5, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":15.25, "y":0}, {"x":16.25, "y":0}, {"x":17.25, "y":0}, {"x":0, "y":1.5}, {"x":1, "y":1.5}, {"x":2, "y":1.5}, {"x":3, "y":1.5}, {"x":4, "y":1.5}, {"x":5, "y":1.5}, {"x":6, "y":1.5}, {"x":7, "y":1.5}, {"x":8, "y":1.5}, {"x":9, "y":1.5}, {"x":10, "y":1.5}, {"x":11, "y":1.5}, {"x":12, "y":1.5}, {"x":13, "y":1.5, "w":2}, {"x":15.25, "y":1.5}, {"x":16.25, "y":1.5}, {"x":17.25, "y":1.5}, {"x":0, "y":2.5, "w":1.5}, {"x":1.5, "y":2.5}, {"x":2.5, "y":2.5}, {"x":3.5, "y":2.5}, {"x":4.5, "y":2.5}, {"x":5.5, "y":2.5}, {"x":6.5, "y":2.5}, {"x":7.5, "y":2.5}, {"x":8.5, "y":2.5}, {"x":9.5, "y":2.5}, {"x":10.5, "y":2.5}, {"x":11.5, "y":2.5}, {"x":12.5, "y":2.5}, {"x":13.5, "y":2.5, "w":1.5}, {"x":15.25, "y":2.5}, {"x":16.25, "y":2.5}, {"x":17.25, "y":2.5}, {"x":0, "y":3.5, "w":1.75}, {"x":1.75, "y":3.5}, {"x":2.75, "y":3.5}, {"x":3.75, "y":3.5}, {"x":4.75, "y":3.5}, {"x":5.75, "y":3.5}, {"x":6.75, "y":3.5}, {"x":7.75, "y":3.5}, {"x":8.75, "y":3.5}, {"x":9.75, "y":3.5}, {"x":10.75, "y":3.5}, {"x":11.75, "y":3.5}, {"x":12.75, "y":3.5, "w":2.25}, {"x":0, "y":4.5, "w":2.25}, {"x":2.25, "y":4.5}, {"x":3.25, "y":4.5}, {"x":4.25, "y":4.5}, {"x":5.25, "y":4.5}, {"x":6.25, "y":4.5}, {"x":7.25, "y":4.5}, {"x":8.25, "y":4.5}, {"x":9.25, "y":4.5}, {"x":10.25, "y":4.5}, {"x":11.25, "y":4.5}, {"x":12.25, "y":4.5, "w":2.75}, {"x":16.25, "y":4.5}, {"x":0, "y":5.5, "w":1.25}, {"x":1.25, "y":5.5, "w":1.25}, {"x":2.5, "y":5.5, "w":1.25}, {"x":3.75, "y":5.5, "w":6.25}, {"x":10, "y":5.5, "w":1.25}, {"x":11.25, "y":5.5, "w":1.25}, {"x":12.5, "y":5.5, "w":1.25}, {"x":13.75, "y":5.5, "w":1.25}, {"x":15.25, "y":5.5}, {"x":16.25, "y":5.5}, {"x":17.25, "y":5.5}] - } - } -} diff --git a/keyboards/duck/orion/v3/keymaps/default/keymap.c b/keyboards/duck/orion/v3/keymaps/default/keymap.c deleted file mode 100644 index 34ce1aaf9f..0000000000 --- a/keyboards/duck/orion/v3/keymaps/default/keymap.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright 2019 MechMerlin <mechmerlin@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/>. - */ -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -[0] = LAYOUT_tkl_ansi( - KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR,KC_SLCK,KC_PAUS, - KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL,KC_BSPC, KC_INS ,KC_HOME,KC_PGUP, - KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC,KC_RBRC,KC_BSLS, KC_DEL ,KC_END ,KC_PGDN, - 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_UP, - KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, MO(1),KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT), - -[1] = LAYOUT_tkl_ansi( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - BL_TOGG, BL_STEP, BL_INC, BL_DEC, QK_BOOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) -}; diff --git a/keyboards/duck/orion/v3/matrix.c b/keyboards/duck/orion/v3/matrix.c deleted file mode 100644 index 84673bd44f..0000000000 --- a/keyboards/duck/orion/v3/matrix.c +++ /dev/null @@ -1,266 +0,0 @@ -/* -Copyright 2019 MechMerlin <mechmerlin@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/>. -*/ - -#include "quantum.h" - -static uint8_t debouncing = DEBOUNCE; - -/* matrix state(1:on, 0:off) */ -static matrix_row_t matrix[MATRIX_ROWS]; -static matrix_row_t matrix_debouncing[MATRIX_ROWS]; - -static uint8_t read_rows(uint8_t col); -static void init_rows(void); -static void unselect_cols(void); -static void select_col(uint8_t col); - - -__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) { -} - -void indicator_init_ports(void) { - - // Num LED - setPinOutput(B4); - - // Caps Lock - setPinOutput(B0); - - // Scroll Lock - setPinOutput(D7); -} - -void matrix_init(void) { - indicator_init_ports(); - unselect_cols(); - init_rows(); - - for (uint8_t i=0; i < MATRIX_ROWS; i++) { - matrix[i] = 0; - matrix_debouncing[i] = 0; - } - - matrix_init_quantum(); -} - -uint8_t matrix_scan(void) { - for (uint8_t col = 0; col < MATRIX_COLS; col++) { - select_col(col); - _delay_us(3); - - uint8_t rows = read_rows(col); - - for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - bool prev_bit = matrix_debouncing[row] & ((matrix_row_t)1<<col); - bool curr_bit = rows & (1<<row); - if (prev_bit != curr_bit) { - matrix_debouncing[row] ^= ((matrix_row_t)1<<col); - if (debouncing) { - dprint("bounce!: "); dprintf("%02X", debouncing); dprintln(); - } - debouncing = DEBOUNCE; - } - } - unselect_cols(); - } - - if (debouncing) { - if (--debouncing) { - _delay_ms(1); - } else { - for (uint8_t i = 0; i < MATRIX_ROWS; i++) { - matrix[i] = matrix_debouncing[i]; - } - } - } - - matrix_scan_quantum(); - return 1; -} - -inline matrix_row_t matrix_get_row(uint8_t row) { - return matrix[row]; -} - -void matrix_print(void) { - print("\nr/c 0123456789ABCDEF\n"); - for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - xprintf("%02X: %032lb\n", row, bitrev32(matrix_get_row(row))); - } -} - -/* Row pin configuration - diode connected - * row: 0 1 2 3 4 5 - * pin: PD0 PD1 PD2 PD3 PD5 PB7 - * - * Backspace uses its own pin PE2 on the column pin, row pin is grounded - */ -static void init_rows(void) { - DDRD &= ~0b00101111; - PORTD &= ~0b00101111; - - DDRB &= ~0b10000000; - PORTB &= ~0b10000000; - - DDRE &= ~0b00000100; - PORTE |= 0b00000100; -} - -static uint8_t read_rows(uint8_t col) { - - return (PIND&(1<<0) ? (1<<0) : 0) | - (PIND&(1<<1) ? (1<<1) : 0) | - (PIND&(1<<2) ? (1<<2) : 0) | - (PIND&(1<<3) ? (1<<3) : 0) | - (PIND&(1<<5) ? (1<<4) : 0) | - (PINB&(1<<7) ? (1<<5) : 0) | - (col== 17 ? ((PINE&(1<<2) ? 0 : (1<<1))) : 0); - -} - -uint8_t read_fwkey(void) -{ - return PINE&(1<<2) ? 0 : (1<<2); -} - -/* Columns 0 - 15 - * - * atmega32u4 decoder pin - * PC6 U1 E3 - * PB6 U2 E3 - * PF0 U1, U2 A0 - * PF1 U1, U2 A1 - * PC7 U1, U2 A2 - * - * These columns uses two 74HC237D 3 to 8 bit demultiplexers. - * col / pin: PC6 PB6 PF0 PF1 PC7 Decoder Pin - * 0: 1 0 0 0 0 U1 Y0 - * 1: 1 0 1 0 0 U1 Y1 - * 2: 1 0 0 1 0 U1 Y2 - * 3: 1 0 1 1 0 U1 Y3 - * 4: 1 0 0 0 1 U1 Y4 - * 5: 1 0 1 0 1 U1 Y5 - * 6: 1 0 0 1 1 U1 Y6 - * 7: 1 0 1 1 1 U1 Y7 - * - * 8: 0 1 0 0 0 U2 Y0 - * 9: 0 1 1 0 0 U2 Y1 - * 10: 0 1 0 1 0 U2 Y2 - * 11: 0 1 1 1 0 U2 Y3 - * 12: 0 1 0 0 1 U2 Y4 - * 13: 0 1 1 0 1 U2 Y5 - * 14: 0 1 0 1 1 U2 Y6 - * 15: 0 1 1 1 1 U2 Y7 - * - */ -static void unselect_cols(void) { - DDRB |= 0b01100000; - PORTB &= ~0b01100000; - - DDRC |= 0b11000000; - PORTC &= ~0b11000000; - - DDRF |= 0b00000011; - PORTF &= ~0b00000011; -} - -static void select_col(uint8_t col) { - - switch (col) { - case 0: - PORTC |= 0b01000000; - break; - case 1: - PORTC |= 0b01000000; - PORTF |= 0b00000001; - break; - case 2: - PORTC |= 0b01000000; - PORTF |= 0b00000010; - break; - case 3: - PORTC |= 0b01000000; - PORTF |= 0b00000011; - break; - case 4: - PORTC |= 0b11000000; - break; - case 5: - PORTC |= 0b11000000; - PORTF |= 0b00000001; - break; - case 6: - PORTC |= 0b11000000; - PORTF |= 0b00000010; - break; - case 7: - PORTC |= 0b11000000; - PORTF |= 0b00000011; - break; - case 8: - PORTB |= 0b01000000; - break; - case 9: - PORTB |= 0b01000000; - PORTF |= 0b00000001; - break; - case 10: - PORTB |= 0b01000000; - PORTF |= 0b00000010; - break; - case 11: - PORTB |= 0b01000000; - PORTF |= 0b00000011; - break; - case 12: - PORTB |= 0b01000000; - PORTC |= 0b10000000; - break; - case 13: - PORTB |= 0b01000000; - PORTF |= 0b00000001; - PORTC |= 0b10000000; - break; - case 14: - PORTB |= 0b01000000; - PORTF |= 0b00000010; - PORTC |= 0b10000000; - break; - case 15: - PORTB |= 0b01000000; - PORTF |= 0b00000011; - PORTC |= 0b10000000; - break; - case 16: - PORTB |= 0b00100000; - break; - } -} diff --git a/keyboards/duck/orion/v3/readme.md b/keyboards/duck/orion/v3/readme.md deleted file mode 100644 index 8d1b83401e..0000000000 --- a/keyboards/duck/orion/v3/readme.md +++ /dev/null @@ -1,30 +0,0 @@ -# Duck Orion V3 - -Non official firmware for custom TKL Korean keyboard made by Duck. -Group buy was run December 2018 via [geekhack](https://geekhack.org/index.php?topic=98581.0) with 100 keyboards total. - -* Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin) -* Hardware Supported: Duck Orion V3 PCB Ver 2.1 -* Hardware Availability: Wait until GB of the next revision - -Make example for this keyboard (after setting up your build environment): - - make duck/orion/v3:default - -**Reset Key:** To put the Orion V3 into reset, hold Backspace key (`K4N`) while plugging in. - -**CAUTION:** At this time 12/19/19 layer indicator lighting has not been implemented by 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). - -## Hardware Notes - -The Orion V3 PCB consists of: - -### Microchips -2 74HC237D 3-to-8 line decoders U1, U2 -1 Atmega32u4 microcontroller -2 WS2811 LED controller U5, U6 - -## Notes -Special thanks to Marcus aka Keebology for doing this remotely and mapping the matrix, indicator LEDs, and backlight LEDs. diff --git a/keyboards/duck/orion/v3/rules.mk b/keyboards/duck/orion/v3/rules.mk deleted file mode 100644 index 64897bcd67..0000000000 --- a/keyboards/duck/orion/v3/rules.mk +++ /dev/null @@ -1,25 +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 -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = yes # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality -BACKLIGHT_DRIVER = custom -AUDIO_ENABLE = no # Audio output -RGBLIGHT_ENABLE = yes - -CUSTOM_MATRIX = yes -SRC += indicator_leds.c \ - matrix.c duck_led/duck_led.c - -LAYOUTS = tkl_ansi diff --git a/keyboards/duck/orion/v3/v3.c b/keyboards/duck/orion/v3/v3.c deleted file mode 100644 index 2e8f85a110..0000000000 --- a/keyboards/duck/orion/v3/v3.c +++ /dev/null @@ -1,39 +0,0 @@ -/* Copyright 2019 MechMerlin <mechmerlin@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/>. - */ -#include "v3.h" -#include "indicator_leds.h" - -// Alphas PB1 -// Navigation Cluster: PB2 -// Number Row, Mods: PB3 -// Function Row: PE6 - -// Other than using RGB or LED matrix, QMK cannot turn on specific zones -// of backlight LEDs. Unfortunately, Duck PCBs do not follow this design -// and instead use multiple pins connected to each of these zones. QMK is -// only able to control them ALL with the current default mechanisms. - -// Locking indicator LEDs -// The Duck Orion V3 has 3 locking indicator LEDs and are located to the right -// of the Escape key. -bool led_update_kb(led_t led_state) { - if(led_update_user(led_state)) { - writePin(B0, !led_state.caps_lock); - writePin(B4, !led_state.num_lock); - writePin(D7, !led_state.scroll_lock); - } - return true; -} diff --git a/keyboards/duck/orion/v3/v3.h b/keyboards/duck/orion/v3/v3.h deleted file mode 100644 index 70591cf034..0000000000 --- a/keyboards/duck/orion/v3/v3.h +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright 2019 MechMerlin <mechmerlin@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 "quantum.h" - -#define ___ KC_NO - -#define LAYOUT_tkl_ansi( \ - K5A, K5C, K5D, K5E, K5F, K5G, K5H, K5I, K5J, K5K, K5L, K5M, K5N, K5O, K5P, K5Q, \ - K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H, K4I, K4J, K4K, K4L, K4M, K4R, K4O, K4P, K4Q, \ - K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, K3I, K3J, K3K, K3L, K3M, K3N, K3O, K3P, K3Q, \ - K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H, K2I, K2J, K2K, K2L, K2N, \ - K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, K1I, K1J, K1K, K1N, K1P, \ - K0A, K0B, K0C, K0F, K0I, K0K, K0M, K0N, K0O, K0P, K0Q \ -) { \ - { K5A, ___, K5C, K5D, K5E, K5F, K5G, K5H, K5I, K5J, K5K, K5L, K5M, K5N, K5O, K5P, K5Q, ___ }, \ - { K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H, K4I, K4J, K4K, K4L, K4M, ___, K4O, K4P, K4Q, K4R }, \ - { K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, K3I, K3J, K3K, K3L, K3M, K3N, K3O, K3P, K3Q, ___ }, \ - { K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H, K2I, K2J, K2K, K2L, ___, K2N, ___, ___, ___, ___ }, \ - { K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, K1I, K1J, K1K, ___, ___, K1N, ___, K1P, ___, ___ }, \ - { K0A, K0B, K0C, ___, ___, K0F, ___, ___, K0I, ___, K0K, ___, K0M, K0N, K0O, K0P, K0Q, ___ } \ -} |