summaryrefslogtreecommitdiffstats
path: root/keyboards/opendeck/32
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-12-06 17:10:48 +0800
committerlokher <lokher@gmail.com>2022-12-07 15:50:49 +0800
commita336c2c5005251e4cb0f3a62ccabdb4cfccad915 (patch)
tree3c948b631a5e3b6f940dabe02fad3c7487e6f350 /keyboards/opendeck/32
parent27fc28fd2ff52e079a5bc58d6aaea4c752420615 (diff)
Merge upstream master to 2022 Q4 breaking change
Diffstat (limited to 'keyboards/opendeck/32')
-rw-r--r--keyboards/opendeck/32/rev1/config.h93
-rw-r--r--keyboards/opendeck/32/rev1/rev1.c136
2 files changed, 0 insertions, 229 deletions
diff --git a/keyboards/opendeck/32/rev1/config.h b/keyboards/opendeck/32/rev1/config.h
deleted file mode 100644
index ba07576ee2..0000000000
--- a/keyboards/opendeck/32/rev1/config.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/* Copyright 2020 cmdremily
- *
- * 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 (TtB, LtR)
-#define MATRIX_ROWS 4
-#define MATRIX_COLS 8
-#define MATRIX_COL_PINS \
- { B4, D7, D6, D4, F7, F6, F5, F4 }
-#define MATRIX_ROW_PINS \
- { C7, C6, B6, B5 }
-#define DIODE_DIRECTION COL2ROW
-
-// RGB matrix
-#define DRIVER_ADDR_1 0b1110100
-#define DRIVER_COUNT 1
-#define RGB_MATRIX_LED_COUNT (4 * 8 * 3)
-#define RGB_DISABLE_WHEN_USB_SUSPENDED
-#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_SPIRAL
-#define RGB_MATRIX_DISABLE_KEYCODES
-// RGB Matrix Animation modes. Explicitly enabled
-// For full list of effects, see:
-// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
-#define ENABLE_RGB_MATRIX_ALPHAS_MODS
-#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
-#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
-#define ENABLE_RGB_MATRIX_BREATHING
-#define ENABLE_RGB_MATRIX_BAND_SAT
-#define ENABLE_RGB_MATRIX_BAND_VAL
-#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
-#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
-#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
-#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
-#define ENABLE_RGB_MATRIX_CYCLE_ALL
-#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
-#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
-#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
-#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
-#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
-#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
-#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
-#define ENABLE_RGB_MATRIX_DUAL_BEACON
-#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
-#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
-#define ENABLE_RGB_MATRIX_RAINDROPS
-#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
-#define ENABLE_RGB_MATRIX_HUE_BREATHING
-#define ENABLE_RGB_MATRIX_HUE_PENDULUM
-#define ENABLE_RGB_MATRIX_HUE_WAVE
-#define ENABLE_RGB_MATRIX_PIXEL_RAIN
-#define ENABLE_RGB_MATRIX_PIXEL_FLOW
-#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
-// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
-#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
-#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
-// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
-#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
-#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
-#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
-#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
-#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
-#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
-#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
-#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
-#define ENABLE_RGB_MATRIX_SPLASH
-#define ENABLE_RGB_MATRIX_MULTISPLASH
-#define ENABLE_RGB_MATRIX_SOLID_SPLASH
-#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
-
-// Set 0 if debouncing isn't needed
-#define DEBOUNCE 5
-
-#define FORCE_NKRO
-
-// Slim down the ROM
-#define NO_ACTION_LAYER
-#define NO_ACTION_TAPPING
-#define NO_ACTION_ONESHOT
diff --git a/keyboards/opendeck/32/rev1/rev1.c b/keyboards/opendeck/32/rev1/rev1.c
deleted file mode 100644
index b803682b7d..0000000000
--- a/keyboards/opendeck/32/rev1/rev1.c
+++ /dev/null
@@ -1,136 +0,0 @@
-/* Copyright 2020 cmdremily
- *
- * 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 "rev1.h"
-
-#ifdef RGB_MATRIX_ENABLE
-const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
- /* Refer to IS31 manual for these locations
- * driver
- * | R location
- * | | G location
- * | | | B location
- * | | | | */
- // clang-format off
- {0, C4_1, C5_1, C6_1},
- {0, C4_2, C5_2, C6_2},
- {0, C4_3, C5_3, C6_3},
- {0, C1_4, C2_4, C3_4},
- {0, C4_9, C5_9, C6_9},
- {0, C4_10, C5_10, C6_10},
- {0, C4_11, C5_11, C6_11},
- {0, C1_12, C2_12, C3_12},
-
- {0, C7_1, C8_1, C9_1},
- {0, C7_2, C8_2, C9_2},
- {0, C7_3, C8_3, C9_3},
- {0, C7_4, C8_4, C9_4},
- {0, C7_9, C8_9, C9_9},
- {0, C7_10, C8_10, C9_10},
- {0, C7_11, C8_11, C9_11},
- {0, C7_12, C8_12, C9_12},
-
- {0, C1_5, C2_5, C3_5},
- {0, C1_6, C2_6, C3_6},
- {0, C1_7, C2_7, C3_7},
- {0, C1_8, C2_8, C3_8},
- {0, C1_13, C2_13, C3_13},
- {0, C1_14, C2_14, C3_14},
- {0, C1_15, C2_15, C3_15},
- {0, C1_16, C2_16, C3_16},
-
- {0, C7_5, C8_5, C9_5},
- {0, C7_6, C8_6, C9_6},
- {0, C4_7, C5_7, C6_7},
- {0, C4_8, C5_8, C6_8},
- {0, C7_13, C8_13, C9_13},
- {0, C7_14, C8_14, C9_14},
- {0, C4_15, C5_15, C6_15},
- {0, C4_16, C5_16, C6_16},
- // clang-format on
-};
-
-// clang-format off
-led_config_t g_led_config = {
- {
- // Key Matrix to LED Index
- { 0, 1, 2, 3, 4, 5, 6, 7 },
- { 8, 9, 10, 11, 12, 13, 14, 15 },
- { 16, 17, 18, 19, 20, 21, 22, 23 },
- { 24, 25, 26, 27, 28, 29, 30, 31 }
- }, {
- // LED Index to Physical Position
- { 0, 0 }, { 32, 0 }, { 64, 0 }, { 96, 0 }, { 128, 0 }, { 160, 0 }, { 192, 0 }, { 224, 0 },
- { 0, 21 }, { 32, 21 }, { 64, 21 }, { 96, 21 }, { 128, 21 }, { 160, 21 }, { 192, 21 }, { 224, 21 },
- { 0, 43 }, { 32, 43 }, { 64, 43 }, { 96, 43 }, { 128, 43 }, { 160, 43 }, { 192, 43 }, { 224, 43 },
- { 0, 64 }, { 32, 64 }, { 64, 64 }, { 96, 64 }, { 128, 64 }, { 160, 64 }, { 192, 64 }, { 224, 64 }
- }, {
- // LED Index to Flag
- 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4
- }
-};
-
-// clang-format on
-
-void keyboard_pre_init_kb(void) {
- // Light power LED
- setPinOutput(POWER_LED_PIN);
- writePinLow(POWER_LED_PIN);
-
- // Enable RGB driver IC
- setPinOutput(RGB_DISABLE_N_PIN);
- writePinHigh(RGB_DISABLE_N_PIN);
-
- // We don't use this feature of the IS31FL3731 but it is electrically connected
- // Make sure not to drive it
- setPinInput(RGB_IRQ_N_PIN);
-}
-
-void keyboard_post_init_user() {
- // RGB enabled by default, no way to turn off. No need to expend EEPROM write cycles here.
- rgb_matrix_enable_noeeprom();
-}
-#endif
-
-#if defined(KC_WRAPPER_KEY)
-
-static uint8_t g_key_wrapper_tracker = 0;
-
-bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
- if (!process_record_user(keycode, record)) { return false; }
- if (record->event.pressed && keycode != KC_WRAPPER_KEY) {
- register_code(KC_WRAPPER_KEY);
- register_code(keycode);
- g_key_wrapper_tracker++;
- return false;
- }
- return true;
-}
-
-void post_process_record_kb(uint16_t keycode, keyrecord_t *record) {
- if (!record->event.pressed && keycode != KC_WRAPPER_KEY) {
- --g_key_wrapper_tracker;
- if (g_key_wrapper_tracker <= 0) {
- unregister_code(KC_WRAPPER_KEY);
- g_key_wrapper_tracker = 0;
- }
- }
- post_process_record_user(keycode, record);
-}
-#endif