summaryrefslogtreecommitdiff
path: root/keyboards/keebio/bdn9
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keebio/bdn9')
-rw-r--r--keyboards/keebio/bdn9/keymaps/ghostseven/config.h20
-rw-r--r--keyboards/keebio/bdn9/keymaps/ghostseven/keymap.c71
-rw-r--r--keyboards/keebio/bdn9/keymaps/lickel/keymap.c171
-rw-r--r--keyboards/keebio/bdn9/keymaps/lickel/readme.md21
-rw-r--r--keyboards/keebio/bdn9/keymaps/lickel/rules.mk6
-rw-r--r--keyboards/keebio/bdn9/keymaps/mousepad/config.h3
-rw-r--r--keyboards/keebio/bdn9/keymaps/mousepad/keymap.c82
-rw-r--r--keyboards/keebio/bdn9/keymaps/mousepad/readme.md16
-rw-r--r--keyboards/keebio/bdn9/keymaps/mousepad/rules.mk2
-rw-r--r--keyboards/keebio/bdn9/keymaps/vosechu-browser/keymap.c58
-rw-r--r--keyboards/keebio/bdn9/keymaps/vosechu-ksp/keymap.c173
-rw-r--r--keyboards/keebio/bdn9/rev2/config.h55
-rw-r--r--keyboards/keebio/bdn9/rev2/info.json45
13 files changed, 45 insertions, 678 deletions
diff --git a/keyboards/keebio/bdn9/keymaps/ghostseven/config.h b/keyboards/keebio/bdn9/keymaps/ghostseven/config.h
deleted file mode 100644
index 6df867d575..0000000000
--- a/keyboards/keebio/bdn9/keymaps/ghostseven/config.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Copyright 2020 GhostSeven <work@ghost7.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
-
-#ifdef RGB_MATRIX_ENABLE
-# define RGB_MATRIX_KEYPRESSES
-#endif
diff --git a/keyboards/keebio/bdn9/keymaps/ghostseven/keymap.c b/keyboards/keebio/bdn9/keymaps/ghostseven/keymap.c
deleted file mode 100644
index 1a1df0d501..0000000000
--- a/keyboards/keebio/bdn9/keymaps/ghostseven/keymap.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/* Copyright 2020 GhostSeven <work@ghost7.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
-
-enum encoder_names {
- _LEFT,
- _RIGHT,
- _MIDDLE,
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- /*
- | Knob 1: Vol Dn/Up | | Knob 2: Page Dn/Up |
- | Press: Mute | Home | Press: Play/Pause |
- | Hold: Layer 2 | Up | Enter |
- | Left | Down | Right |
- */
- [0] = LAYOUT(
- KC_MUTE, KC_HOME, KC_MPLY,
- MO(1) , KC_UP , KC_ENT,
- KC_LEFT, KC_DOWN, KC_RGHT
- ),
- /*
- | QK_BOOT | Shift+CMD+B (Build VS Code) | Media Stop |
- | Held: Layer 2 | Home | RGB Mode |
- | Media Previous | End | Media Next |
- */
- [1] = LAYOUT(
- QK_BOOT, S(G(KC_B)), KC_STOP,
- _______, KC_HOME, RGB_MOD,
- KC_MPRV, KC_END , KC_MNXT
- ),
-};
-
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if (index == _LEFT) {
- if (clockwise) {
- tap_code(KC_VOLD);
- } else {
- tap_code(KC_VOLU);
- }
- }
- else if (index == _MIDDLE) {
- if (clockwise) {
- tap_code(KC_UP);
- } else {
- tap_code(KC_DOWN);
- }
- }
- else if (index == _RIGHT) {
- if (clockwise) {
- tap_code(KC_PGUP);
- } else {
- tap_code(KC_PGDN);
- }
- }
- return true;
-}
diff --git a/keyboards/keebio/bdn9/keymaps/lickel/keymap.c b/keyboards/keebio/bdn9/keymaps/lickel/keymap.c
deleted file mode 100644
index f62e38107e..0000000000
--- a/keyboards/keebio/bdn9/keymaps/lickel/keymap.c
+++ /dev/null
@@ -1,171 +0,0 @@
-/* Copyright 2022 @ Adam Lickel
- *
- * 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 encoder_names {
- _LEFT,
- _RIGHT,
- _MIDDLE,
-};
-
-enum bdn9_layers {
- _MEDIA = 0,
- _XCODE,
- _CUST1,
- _CUST2,
-};
-
-#define KC_XCRUN LGUI(KC_R)
-#define KC_XCPAUSE LCTL(LGUI(KC_Y))
-#define KC_XCSTOP LGUI(KC_DOT)
-
-// clang-format off
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [_MEDIA] = LAYOUT(
- TO(_XCODE), RGB_SPD, RGB_SPI,
- RGB_MOD, KC_MPLY, KC_MSTP,
- RGB_RMOD, KC_MNXT, KC_MPRV
- ),
- [_XCODE] = LAYOUT(
- TG(_XCODE), KC_NO, KC_NO,
- KC_XCRUN, KC_XCPAUSE, KC_XCSTOP,
- KC_F6, KC_F7, KC_F8
- ),
- [_CUST1] = LAYOUT(
- TG(_CUST1), _______, _______,
- _______, _______, _______,
- _______, _______, _______
- ),
- [_CUST2] = LAYOUT(
- TG(_CUST2), _______, _______,
- _______, _______, _______,
- _______, _______, _______
- ),
-};
-
-// clang-format on
-
-layer_state_t layer_state_set_user(layer_state_t state) {
-#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
- uint8_t layer = get_highest_layer(state);
-
- switch (layer) {
- case _MEDIA: // Reset
- rgblight_reload_from_eeprom();
- break;
-
- case _XCODE:
- rgblight_sethsv_noeeprom(HSV_BLUE);
-# if defined(RGB_MATRIX_ENABLE) && defined(ENABLE_RGB_MATRIX_BREATHING)
- rgb_matrix_mode_noeeprom(RGB_MATRIX_BREATHING);
-# elif defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_EFFECT_BREATHING)
- rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 1);
-# endif
- break;
-
- case _CUST1:
- rgblight_sethsv_noeeprom(HSV_GREEN);
-# if defined(RGB_MATRIX_ENABLE) && defined(ENABLE_RGB_MATRIX_BREATHING)
- rgb_matrix_mode_noeeprom(RGB_MATRIX_BREATHING);
-# elif defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_EFFECT_BREATHING)
- rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 1);
-# endif
- break;
-
- case _CUST2:
- rgblight_sethsv_noeeprom(HSV_PURPLE);
-# if defined(RGB_MATRIX_ENABLE) && defined(ENABLE_RGB_MATRIX_BREATHING)
- rgb_matrix_mode_noeeprom(RGB_MATRIX_BREATHING);
-# elif defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_EFFECT_BREATHING)
- rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 1);
-# endif
- break;
-
- default:
- break;
- }
-#endif
- return state;
-}
-
-#ifdef ENCODER_MAP_ENABLE
-const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
-#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
- [_MEDIA] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI), ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
- [_XCODE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) },
-#else
- [_MEDIA] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) },
- [_XCODE] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
-#endif
- [_CUST1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
- [_CUST2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
-};
-#else
-bool encoder_update_user(uint8_t index, bool clockwise) {
- uint8_t layer = get_highest_layer(layer_state);
-
- switch (layer) {
-#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
- case 0: // Reset
- if (index == _LEFT) {
- if (clockwise) {
- rgblight_increase_hue();
- } else {
- rgblight_decrease_hue();
- }
- } else if (index == _MIDDLE) {
- if (clockwise) {
- rgblight_increase_sat();
- } else {
- rgblight_decrease_sat();
- }
- } else if (index == _RIGHT) {
- if (clockwise) {
- rgblight_increase_val();
- } else {
- rgblight_decrease_val();
- }
- }
- break;
-#endif
-
- default:
- if (index == _LEFT) {
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
- } else if (index == _MIDDLE) {
- if (clockwise) {
- tap_code(KC_DOWN);
- } else {
- tap_code(KC_UP);
- }
- } else if (index == _RIGHT) {
- if (clockwise) {
- tap_code(KC_PGDN);
- } else {
- tap_code(KC_PGUP);
- }
- }
- break;
- }
- return true;
-}
-#endif
diff --git a/keyboards/keebio/bdn9/keymaps/lickel/readme.md b/keyboards/keebio/bdn9/keymaps/lickel/readme.md
deleted file mode 100644
index 72170ce452..0000000000
--- a/keyboards/keebio/bdn9/keymaps/lickel/readme.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# lickel's BDN9 keymap
-
-- Via support is enabled by default
-- Changing layers to non-zero changes the RGBs to breathing colors
-- Changing to layer 0 resets the RGBs to EEPROM settings
-- Layer 0 encoders are: Hue, Saturation, Value
-- Other layers are: Volume, Arrow, Pg up/down
-
-- Layer 0: Media Controls & RGB Effects
-- Layer 1: Xcode Debugging
-- Layers 2 and 3: Reserved for Via
-
-## Changelog
-
-### 2022-12-09 - 1.1
-
-- Add ENCODER_MAP_ENABLE from default VIA definition
-
-### 2022-01-17 - 1.0
-
-- Initial release
diff --git a/keyboards/keebio/bdn9/keymaps/lickel/rules.mk b/keyboards/keebio/bdn9/keymaps/lickel/rules.mk
deleted file mode 100644
index ec89cb662f..0000000000
--- a/keyboards/keebio/bdn9/keymaps/lickel/rules.mk
+++ /dev/null
@@ -1,6 +0,0 @@
-VIA_ENABLE = yes
-LTO_ENABLE = yes
-MOUSEKEY_ENABLE = yes
-CONSOLE_ENABLE = no
-COMMAND_ENABLE = no
-ENCODER_MAP_ENABLE = yes
diff --git a/keyboards/keebio/bdn9/keymaps/mousepad/config.h b/keyboards/keebio/bdn9/keymaps/mousepad/config.h
deleted file mode 100644
index a2eb1a95f0..0000000000
--- a/keyboards/keebio/bdn9/keymaps/mousepad/config.h
+++ /dev/null
@@ -1,3 +0,0 @@
-#define MK_3_SPEED
-#define TERMINAL_HELP
-
diff --git a/keyboards/keebio/bdn9/keymaps/mousepad/keymap.c b/keyboards/keebio/bdn9/keymaps/mousepad/keymap.c
deleted file mode 100644
index 268dd8002a..0000000000
--- a/keyboards/keebio/bdn9/keymaps/mousepad/keymap.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/* Copyright 2019 Danny Nguyen <danny@keeb.io>
- *
- * 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
-
-
-bool is_alt_tab_active = false; // ADD this near the begining of keymap.c
-uint16_t alt_tab_timer = 0; // we will be using them soon.
-
-enum custom_keycodes { // Make sure have the awesome keycode ready
- ALT_TAB = SAFE_RANGE,
-};
-
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT(
- KC_MS_BTN1, KC_MS_BTN2, KC_MS_BTN3,
- KC_WH_U, ALT_TAB, KC_WH_L,
- KC_WH_D, TT(1), KC_WH_R
- ),
- [1] = LAYOUT(
- QK_BOOT, KC_ACL0, KC_ACL1,
- KC_VOLU, KC_ACL2, KC_BRIU,
- KC_VOLD, TO(1), KC_BRID
- ),
-};
-
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if (index == 0) {
- if (clockwise) {
- tap_code(KC_MS_LEFT);
- } else {
- tap_code(KC_MS_RIGHT);
- }
- }
- else if (index == 1) {
- if (clockwise) {
- tap_code(KC_MS_U);
- } else {
- tap_code(KC_MS_D);
- }
- }
- return true;
-}
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) { // This will do most of the grunt work with the keycodes.
- case ALT_TAB:
- if (record->event.pressed) {
- if (!is_alt_tab_active) {
- is_alt_tab_active = true;
- register_code(KC_LALT);
- }
- alt_tab_timer = timer_read();
- register_code(KC_TAB);
- } else {
- unregister_code(KC_TAB);
- }
- break;
- }
- return true;
-}
-
-void matrix_scan_user(void) { // The very important timer.
- if (is_alt_tab_active) {
- if (timer_elapsed(alt_tab_timer) > 1000) {
- unregister_code(KC_LALT);
- is_alt_tab_active = false;
- }
- }
-}
diff --git a/keyboards/keebio/bdn9/keymaps/mousepad/readme.md b/keyboards/keebio/bdn9/keymaps/mousepad/readme.md
deleted file mode 100644
index fc843929db..0000000000
--- a/keyboards/keebio/bdn9/keymaps/mousepad/readme.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Mousepad layout for BDN9
-##### 2 encoders required
-Why use a movable mouse when you can "Etech-a-sketch" style mousepad.
-The left encoder will move the X axis; leaving the right to handle the Y axis
-
-| | | |
-|:-:|:-:|:-:|
-| Left Click | Middle Click | Right Click |
-| Scroll Up | Super ALT↯TAB | Scroll Left |
-| Scroll Down | ADJUSTMENT Layer | Scroll Right|
-
-| | | |
-|:-:|:-:|:-:|
-| RESET | Mouse ACL0 | Mouse ACL1 |
-| VOL UP | Mouse ACL2 | Brightness UP |
-| VOL Down | Adjustment Layer OFF | Brightness Down |
diff --git a/keyboards/keebio/bdn9/keymaps/mousepad/rules.mk b/keyboards/keebio/bdn9/keymaps/mousepad/rules.mk
deleted file mode 100644
index ff752ab42c..0000000000
--- a/keyboards/keebio/bdn9/keymaps/mousepad/rules.mk
+++ /dev/null
@@ -1,2 +0,0 @@
-MOUSEKEY_ENABLE = yes
-TAPDANCE_ENABLE = yes
diff --git a/keyboards/keebio/bdn9/keymaps/vosechu-browser/keymap.c b/keyboards/keebio/bdn9/keymaps/vosechu-browser/keymap.c
deleted file mode 100644
index 4b0fb147ec..0000000000
--- a/keyboards/keebio/bdn9/keymaps/vosechu-browser/keymap.c
+++ /dev/null
@@ -1,58 +0,0 @@
-#include QMK_KEYBOARD_H
-
-// Macro keys for some apps
-#define SLACKUP LALT(LSFT(KC_UP))
-#define SLACKDN LALT(LSFT(KC_DOWN))
-#define RELOAD LGUI(KC_R)
-
-enum custom_keycodes {
- PAWFIVE = SAFE_RANGE
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT(
- QK_BOOT, PAWFIVE, RELOAD ,
- SLACKUP, KC_UP , KC_PGUP,
- SLACKDN, KC_DOWN, KC_PGDN
- ),
-};
-
-void keyboard_post_init_user(void) {
- // Call the post init code.
- rgblight_enable_noeeprom(); // enables Rgb, without saving settings
- rgblight_mode_noeeprom(RGBLIGHT_MODE_RAINBOW_SWIRL); // sets mode to Slow breathing without saving
-}
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case PAWFIVE:
- if (record->event.pressed) {
- SEND_STRING("+:pawfive:\n");
- return false;
- }
- }
-
- return true;
-}
-
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if (index == 0) {
- if (clockwise) {
- // Tab right
- tap_code16(LSFT(LGUI(KC_RBRC)));
- } else {
- // Tab left
- tap_code16(LSFT(LGUI(KC_LBRC)));
- }
- }
- else if (index == 1) {
- if (clockwise) {
- // History forward
- tap_code16(LGUI(KC_RBRC));
- } else {
- // History back
- tap_code16(LGUI(KC_LBRC));
- }
- }
- return true;
-}
diff --git a/keyboards/keebio/bdn9/keymaps/vosechu-ksp/keymap.c b/keyboards/keebio/bdn9/keymaps/vosechu-ksp/keymap.c
deleted file mode 100644
index 66483b51de..0000000000
--- a/keyboards/keebio/bdn9/keymaps/vosechu-ksp/keymap.c
+++ /dev/null
@@ -1,173 +0,0 @@
-/* Copyright 2019 Chuck Lauer Vose <vosechu@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
-
-// // Debugging
-// #include <print.h>
-
-#define BASE TO(_BASE)
-#define PANIC TO(_PANIC)
-#define FLIGHT TO(_FLIGHT)
-#define RCS TO(_RCS)
-
-enum my_layers {
- _BASE = 0,
- _PANIC,
- _FLIGHT,
- _RCS
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [_BASE] = LAYOUT(
- KC_MUTE, PANIC , XXXXXXX,
- FLIGHT , XXXXXXX, RCS ,
- XXXXXXX, XXXXXXX, XXXXXXX
- ),
- [_PANIC] = LAYOUT(
- QK_BOOT, BASE , XXXXXXX,
- _______, XXXXXXX, _______,
- KC_F2 , KC_F5 , KC_F9
- ),
- [_FLIGHT] = LAYOUT(
- XXXXXXX, _______, KC_M ,
- BASE , KC_W , _______,
- KC_A , KC_S , KC_D
- ),
- [_RCS] = LAYOUT(
- XXXXXXX, _______, XXXXXXX,
- _______, KC_I , BASE ,
- KC_J , KC_K , KC_L
- )
-};
-
-bool base_mode = false;
-bool panic_mode = false;
-bool flight_mode = false;
-bool rcs_mode = false;
-
-layer_state_t layer_state_set_user(layer_state_t state) {
- base_mode = false;
- panic_mode = false;
- flight_mode = false;
- rcs_mode = false;
-
- switch (get_highest_layer(state)) {
- case _PANIC:
- panic_mode = true; // For use in encoder evaluation
- rgblight_sethsv_noeeprom(HSV_RED);
- break;
- case _FLIGHT:
- flight_mode = true; // For use in encoder evaluation
- rgblight_sethsv_noeeprom(HSV_CYAN);
- break;
- case _RCS:
- rcs_mode = true; // For use in encoder evaluation
- rgblight_sethsv_noeeprom(HSV_BLUE);
- break;
- default: // for any other layers, or the default layer
- base_mode = true;
- rgblight_sethsv_noeeprom(HSV_SPRINGGREEN);
- break;
- }
- return state;
-}
-
-void keyboard_post_init_user(void) {
- // Call the post init code.
- rgblight_enable_noeeprom(); // enables Rgb, without saving settings
- rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 1); // sets mode to Slow breathing without saving
- rgblight_sethsv_noeeprom(HSV_SPRINGGREEN);
-}
-
-// bool process_record_user(uint16_t keycode, keyrecord_t *record) {
-// switch (keycode) {
-// uprintf("Keycode: %s\n", keycode);
-// if (record->event.pressed) {
-// print("pressed");
-// // Do something when pressed
-// } else {
-// print("unpressed");
-// // Do something else when release
-// }
-// }
-// return true;
-// }
-
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if(base_mode == true) {
- if (index == 0) {
- if (clockwise) {
- // Volume up
- tap_code(KC_VOLU);
- } else {
- // Volume down
- tap_code(KC_VOLD);
- }
- }
- else if (index == 1) {
- if (clockwise) {
- // Time warp faster
- tap_code(KC_DOT);
- } else {
- // Time warp slower
- tap_code(KC_COMM);
- }
- }
- }
-
- if(rcs_mode == true) {
- if (index == 0) {
- if (clockwise) {
- // RCS Forward
- tap_code(KC_H);
- } else {
- // RCS Backward
- tap_code(KC_N);
- }
- }
- else if (index == 1) {
- if (clockwise) {
- // RCS Rotate Left
- tap_code(KC_Q);
- } else {
- // RCS Rotate Right
- tap_code(KC_E);
- }
- }
- }
-
- if(flight_mode == true) {
- if (index == 0) {
- if (clockwise) {
- // Throttle up
- tap_code(KC_LSFT);
- } else {
- // Throttle down
- tap_code(KC_LCTL);
- }
- }
- else if (index == 1) {
- if (clockwise) {
- // Trim left
- tap_code16(LALT(KC_A));
- } else {
- // Trim right
- tap_code16(LALT(KC_D));
- }
- }
- }
- return true;
-}
diff --git a/keyboards/keebio/bdn9/rev2/config.h b/keyboards/keebio/bdn9/rev2/config.h
index 1974d81f75..5cfd269d50 100644
--- a/keyboards/keebio/bdn9/rev2/config.h
+++ b/keyboards/keebio/bdn9/rev2/config.h
@@ -17,61 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-// RGB Matrix
-# ifdef RGB_MATRIX_ENABLE
-# define RGB_MATRIX_LED_COUNT 11
-# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
-# define RGB_MATRIX_KEYPRESSES
-// 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
-# endif
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/keebio/bdn9/rev2/info.json b/keyboards/keebio/bdn9/rev2/info.json
index 324a400041..74d6dac85b 100644
--- a/keyboards/keebio/bdn9/rev2/info.json
+++ b/keyboards/keebio/bdn9/rev2/info.json
@@ -26,6 +26,51 @@
"pin": "B15"
},
"rgb_matrix": {
+ "animations":{
+ "alphas_mods": true,
+ "gradient_up_down": true,
+ "gradient_left_right": true,
+ "breathing": true,
+ "band_sat": true,
+ "band_val": true,
+ "band_pinwheel_sat": true,
+ "band_pinwheel_val": true,
+ "band_spiral_sat": true,
+ "band_spiral_val": true,
+ "cycle_all": true,
+ "cycle_left_right": true,
+ "cycle_up_down": true,
+ "rainbow_moving_chevron": true,
+ "cycle_out_in": true,
+ "cycle_out_in_dual": true,
+ "cycle_pinwheel": true,
+ "cycle_spiral": true,
+ "dual_beacon": true,
+ "rainbow_beacon": true,
+ "rainbow_pinwheels": true,
+ "raindrops": true,
+ "jellybean_raindrops": true,
+ "hue_breathing": true,
+ "hue_pendulum": true,
+ "hue_wave": true,
+ "pixel_rain": true,
+ "pixel_flow": true,
+ "pixel_fractal": true,
+ "typing_heatmap": true,
+ "digital_rain": true,
+ "solid_reactive_simple": true,
+ "solid_reactive": true,
+ "solid_reactive_wide": true,
+ "solid_reactive_multiwide": true,
+ "solid_reactive_cross": true,
+ "solid_reactive_multicross": true,
+ "solid_reactive_nexus": true,
+ "solid_reactive_multinexus": true,
+ "splash": true,
+ "multisplash": true,
+ "solid_splash": true,
+ "solid_multisplash": true
+ },
"driver": "ws2812"
},
"encoder": {