You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
5.5 KiB

[keyboard] bastardkb: restructure folder hierarchy (#16778) * bastardkb: restructure folder hierarchy ahead of supporting other adapters/mcus Upcoming support for the following (adapter, mcu) pairs will be submitted in follow-up PRs: - `v2/elitec` - `v2/stemcell` - `blackpill` This PR contains the following changes: - Move previous implementation to an inner `v1/elitec` folder - Move keyboard USB IDs and strings to data driven - Update headers to update maintainers list - Run `qmk format-c` * bastardkb/charybdis: remove broken acceleration implementation * bastardkb/charybdis: fix debug output * bastardkb: add support for BastardKb the `v2/elitec` (adapter, mcu) pair * bastardkb: add Blackpill support * bastardkb/charybdis/3x5: add `bstiq` keymap * bastardkb/charybdis: add fake LEDs to the configuration For the Charybdis 3x5 (respectively 4x6), the LED config now simulates 36 (respectively 58) LEDs instead of the actual 35 (respectively 56) to prevent confusion when testing LEDs during assembly when handedness is not set correctly. Those fake LEDs are bound to the physical bottom-left corner. * bastardkbk/charybdis/readme.md: update build commands Merge pull request #5 from Nathancooke7/update_charybdis_readme_v2_shield. * bastardkb/charybdis: fix Via keymap with blackpill * bastardkb/charybdis: add 3x6 configuration * bastardkb/charybdis: remove unnecessary files * bastardkb/charybdis: remove obsolete code * bastardkb/charybdis/3x6: add Via keymap * bastardkb: add support for Splinky (RP2040) board * bastardkb: initial configuration for the Splinky (SPI not working yet) * bastardkb/charybdis/3x5/v2/splinky: tentative change to enable trackball * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/4x6/v2/splinky: add SPI configuration and enable trackball * bastardkb/charybdis/3x6: add splinky config * bastardkb/*/v2/splinky: update drivers to `vendor` * bastardkb/dilemma: add new board * bastardkb/charybdis: fix infinite loop in `layer_state_set_user(…)` in the `via` keymaps * bastardkb/dilemma: add `bstiq` keymap * bastardkb: specify blackpill boards * bastardkb/charybdis: fix blackpill-specific define syntax * bastardkb: remove `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION` which are no longer valid options * bastardkb: fix `QK_BOOT` keycodes * bastardkb/dilemma: fix mouse direction on X axis * bastardkb/charybdis/3x6: adjust CS * bastardkb/dilemma: adjust trackpad configuration * charybdis: fix `PWM33XX_CS_PIN` defines This is a follow-up of https://github.com/qmk/qmk_firmware/pull/17613. * bastardkb: remove Vial mentions from `bstiq` keymaps * Cleanup unnecessary comments Co-authored-by: Nathan <nathan.cooke@compass.com> Co-authored-by: Charly Delay <0xcharly@codesink.dev>
1 year ago
[keyboard] bastardkb: restructure folder hierarchy (#16778) * bastardkb: restructure folder hierarchy ahead of supporting other adapters/mcus Upcoming support for the following (adapter, mcu) pairs will be submitted in follow-up PRs: - `v2/elitec` - `v2/stemcell` - `blackpill` This PR contains the following changes: - Move previous implementation to an inner `v1/elitec` folder - Move keyboard USB IDs and strings to data driven - Update headers to update maintainers list - Run `qmk format-c` * bastardkb/charybdis: remove broken acceleration implementation * bastardkb/charybdis: fix debug output * bastardkb: add support for BastardKb the `v2/elitec` (adapter, mcu) pair * bastardkb: add Blackpill support * bastardkb/charybdis/3x5: add `bstiq` keymap * bastardkb/charybdis: add fake LEDs to the configuration For the Charybdis 3x5 (respectively 4x6), the LED config now simulates 36 (respectively 58) LEDs instead of the actual 35 (respectively 56) to prevent confusion when testing LEDs during assembly when handedness is not set correctly. Those fake LEDs are bound to the physical bottom-left corner. * bastardkbk/charybdis/readme.md: update build commands Merge pull request #5 from Nathancooke7/update_charybdis_readme_v2_shield. * bastardkb/charybdis: fix Via keymap with blackpill * bastardkb/charybdis: add 3x6 configuration * bastardkb/charybdis: remove unnecessary files * bastardkb/charybdis: remove obsolete code * bastardkb/charybdis/3x6: add Via keymap * bastardkb: add support for Splinky (RP2040) board * bastardkb: initial configuration for the Splinky (SPI not working yet) * bastardkb/charybdis/3x5/v2/splinky: tentative change to enable trackball * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/4x6/v2/splinky: add SPI configuration and enable trackball * bastardkb/charybdis/3x6: add splinky config * bastardkb/*/v2/splinky: update drivers to `vendor` * bastardkb/dilemma: add new board * bastardkb/charybdis: fix infinite loop in `layer_state_set_user(…)` in the `via` keymaps * bastardkb/dilemma: add `bstiq` keymap * bastardkb: specify blackpill boards * bastardkb/charybdis: fix blackpill-specific define syntax * bastardkb: remove `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION` which are no longer valid options * bastardkb: fix `QK_BOOT` keycodes * bastardkb/dilemma: fix mouse direction on X axis * bastardkb/charybdis/3x6: adjust CS * bastardkb/dilemma: adjust trackpad configuration * charybdis: fix `PWM33XX_CS_PIN` defines This is a follow-up of https://github.com/qmk/qmk_firmware/pull/17613. * bastardkb: remove Vial mentions from `bstiq` keymaps * Cleanup unnecessary comments Co-authored-by: Nathan <nathan.cooke@compass.com> Co-authored-by: Charly Delay <0xcharly@codesink.dev>
1 year ago
[keyboard] bastardkb: restructure folder hierarchy (#16778) * bastardkb: restructure folder hierarchy ahead of supporting other adapters/mcus Upcoming support for the following (adapter, mcu) pairs will be submitted in follow-up PRs: - `v2/elitec` - `v2/stemcell` - `blackpill` This PR contains the following changes: - Move previous implementation to an inner `v1/elitec` folder - Move keyboard USB IDs and strings to data driven - Update headers to update maintainers list - Run `qmk format-c` * bastardkb/charybdis: remove broken acceleration implementation * bastardkb/charybdis: fix debug output * bastardkb: add support for BastardKb the `v2/elitec` (adapter, mcu) pair * bastardkb: add Blackpill support * bastardkb/charybdis/3x5: add `bstiq` keymap * bastardkb/charybdis: add fake LEDs to the configuration For the Charybdis 3x5 (respectively 4x6), the LED config now simulates 36 (respectively 58) LEDs instead of the actual 35 (respectively 56) to prevent confusion when testing LEDs during assembly when handedness is not set correctly. Those fake LEDs are bound to the physical bottom-left corner. * bastardkbk/charybdis/readme.md: update build commands Merge pull request #5 from Nathancooke7/update_charybdis_readme_v2_shield. * bastardkb/charybdis: fix Via keymap with blackpill * bastardkb/charybdis: add 3x6 configuration * bastardkb/charybdis: remove unnecessary files * bastardkb/charybdis: remove obsolete code * bastardkb/charybdis/3x6: add Via keymap * bastardkb: add support for Splinky (RP2040) board * bastardkb: initial configuration for the Splinky (SPI not working yet) * bastardkb/charybdis/3x5/v2/splinky: tentative change to enable trackball * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/4x6/v2/splinky: add SPI configuration and enable trackball * bastardkb/charybdis/3x6: add splinky config * bastardkb/*/v2/splinky: update drivers to `vendor` * bastardkb/dilemma: add new board * bastardkb/charybdis: fix infinite loop in `layer_state_set_user(…)` in the `via` keymaps * bastardkb/dilemma: add `bstiq` keymap * bastardkb: specify blackpill boards * bastardkb/charybdis: fix blackpill-specific define syntax * bastardkb: remove `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION` which are no longer valid options * bastardkb: fix `QK_BOOT` keycodes * bastardkb/dilemma: fix mouse direction on X axis * bastardkb/charybdis/3x6: adjust CS * bastardkb/dilemma: adjust trackpad configuration * charybdis: fix `PWM33XX_CS_PIN` defines This is a follow-up of https://github.com/qmk/qmk_firmware/pull/17613. * bastardkb: remove Vial mentions from `bstiq` keymaps * Cleanup unnecessary comments Co-authored-by: Nathan <nathan.cooke@compass.com> Co-authored-by: Charly Delay <0xcharly@codesink.dev>
1 year ago
[keyboard] bastardkb: restructure folder hierarchy (#16778) * bastardkb: restructure folder hierarchy ahead of supporting other adapters/mcus Upcoming support for the following (adapter, mcu) pairs will be submitted in follow-up PRs: - `v2/elitec` - `v2/stemcell` - `blackpill` This PR contains the following changes: - Move previous implementation to an inner `v1/elitec` folder - Move keyboard USB IDs and strings to data driven - Update headers to update maintainers list - Run `qmk format-c` * bastardkb/charybdis: remove broken acceleration implementation * bastardkb/charybdis: fix debug output * bastardkb: add support for BastardKb the `v2/elitec` (adapter, mcu) pair * bastardkb: add Blackpill support * bastardkb/charybdis/3x5: add `bstiq` keymap * bastardkb/charybdis: add fake LEDs to the configuration For the Charybdis 3x5 (respectively 4x6), the LED config now simulates 36 (respectively 58) LEDs instead of the actual 35 (respectively 56) to prevent confusion when testing LEDs during assembly when handedness is not set correctly. Those fake LEDs are bound to the physical bottom-left corner. * bastardkbk/charybdis/readme.md: update build commands Merge pull request #5 from Nathancooke7/update_charybdis_readme_v2_shield. * bastardkb/charybdis: fix Via keymap with blackpill * bastardkb/charybdis: add 3x6 configuration * bastardkb/charybdis: remove unnecessary files * bastardkb/charybdis: remove obsolete code * bastardkb/charybdis/3x6: add Via keymap * bastardkb: add support for Splinky (RP2040) board * bastardkb: initial configuration for the Splinky (SPI not working yet) * bastardkb/charybdis/3x5/v2/splinky: tentative change to enable trackball * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/4x6/v2/splinky: add SPI configuration and enable trackball * bastardkb/charybdis/3x6: add splinky config * bastardkb/*/v2/splinky: update drivers to `vendor` * bastardkb/dilemma: add new board * bastardkb/charybdis: fix infinite loop in `layer_state_set_user(…)` in the `via` keymaps * bastardkb/dilemma: add `bstiq` keymap * bastardkb: specify blackpill boards * bastardkb/charybdis: fix blackpill-specific define syntax * bastardkb: remove `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION` which are no longer valid options * bastardkb: fix `QK_BOOT` keycodes * bastardkb/dilemma: fix mouse direction on X axis * bastardkb/charybdis/3x6: adjust CS * bastardkb/dilemma: adjust trackpad configuration * charybdis: fix `PWM33XX_CS_PIN` defines This is a follow-up of https://github.com/qmk/qmk_firmware/pull/17613. * bastardkb: remove Vial mentions from `bstiq` keymaps * Cleanup unnecessary comments Co-authored-by: Nathan <nathan.cooke@compass.com> Co-authored-by: Charly Delay <0xcharly@codesink.dev>
1 year ago
[keyboard] bastardkb: restructure folder hierarchy (#16778) * bastardkb: restructure folder hierarchy ahead of supporting other adapters/mcus Upcoming support for the following (adapter, mcu) pairs will be submitted in follow-up PRs: - `v2/elitec` - `v2/stemcell` - `blackpill` This PR contains the following changes: - Move previous implementation to an inner `v1/elitec` folder - Move keyboard USB IDs and strings to data driven - Update headers to update maintainers list - Run `qmk format-c` * bastardkb/charybdis: remove broken acceleration implementation * bastardkb/charybdis: fix debug output * bastardkb: add support for BastardKb the `v2/elitec` (adapter, mcu) pair * bastardkb: add Blackpill support * bastardkb/charybdis/3x5: add `bstiq` keymap * bastardkb/charybdis: add fake LEDs to the configuration For the Charybdis 3x5 (respectively 4x6), the LED config now simulates 36 (respectively 58) LEDs instead of the actual 35 (respectively 56) to prevent confusion when testing LEDs during assembly when handedness is not set correctly. Those fake LEDs are bound to the physical bottom-left corner. * bastardkbk/charybdis/readme.md: update build commands Merge pull request #5 from Nathancooke7/update_charybdis_readme_v2_shield. * bastardkb/charybdis: fix Via keymap with blackpill * bastardkb/charybdis: add 3x6 configuration * bastardkb/charybdis: remove unnecessary files * bastardkb/charybdis: remove obsolete code * bastardkb/charybdis/3x6: add Via keymap * bastardkb: add support for Splinky (RP2040) board * bastardkb: initial configuration for the Splinky (SPI not working yet) * bastardkb/charybdis/3x5/v2/splinky: tentative change to enable trackball * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/3x5/v2/splinky: fix SCK, MISO, MOSI pins * bastardkb/charybdis/4x6/v2/splinky: add SPI configuration and enable trackball * bastardkb/charybdis/3x6: add splinky config * bastardkb/*/v2/splinky: update drivers to `vendor` * bastardkb/dilemma: add new board * bastardkb/charybdis: fix infinite loop in `layer_state_set_user(…)` in the `via` keymaps * bastardkb/dilemma: add `bstiq` keymap * bastardkb: specify blackpill boards * bastardkb/charybdis: fix blackpill-specific define syntax * bastardkb: remove `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION` which are no longer valid options * bastardkb: fix `QK_BOOT` keycodes * bastardkb/dilemma: fix mouse direction on X axis * bastardkb/charybdis/3x6: adjust CS * bastardkb/dilemma: adjust trackpad configuration * charybdis: fix `PWM33XX_CS_PIN` defines This is a follow-up of https://github.com/qmk/qmk_firmware/pull/17613. * bastardkb: remove Vial mentions from `bstiq` keymaps * Cleanup unnecessary comments Co-authored-by: Nathan <nathan.cooke@compass.com> Co-authored-by: Charly Delay <0xcharly@codesink.dev>
1 year ago
  1. /**
  2. * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com>
  3. * Copyright 2021 Charly Delay <charly@codesink.dev> (@0xcharly)
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. #ifdef VIA_ENABLE
  20. /* Via configuration. */
  21. # define DYNAMIC_KEYMAP_LAYER_COUNT 8
  22. #endif // VIA_ENABLE
  23. #ifndef __arm__
  24. /* Disable unused features. */
  25. # define NO_ACTION_ONESHOT
  26. #endif // __arm__
  27. /**
  28. * Configure the global tapping term (default: 200ms).
  29. * If you have a lot of accidental mod activations, crank up the tapping term.
  30. *
  31. * See docs.qmk.fm/using-qmk/software-features/tap_hold#tapping-term
  32. */
  33. #ifndef TAPPING_TERM
  34. # define TAPPING_TERM 160
  35. #endif // TAPPING_TERM
  36. /**
  37. * Enable rapid switch from tap to hold. Disable auto-repeat when pressing key
  38. * twice, except for one-shot keys.
  39. *
  40. * See docs.qmk.fm/using-qmk/software-features/tap_hold#tapping-force-hold
  41. */
  42. #define QUICK_TAP_TERM 0
  43. /*
  44. * Tap-or-Hold decision modes.
  45. *
  46. * Note that the following flags behave differently when combined (ie. when 2 or
  47. * more are enabled).
  48. *
  49. * See bit.ly/tap-or-hold for a visual explanation of the following tap-or-hold
  50. * decision modes.
  51. */
  52. /**
  53. * Faster tap-hold trigger.
  54. *
  55. * Without `PERMISSIVE_HOLD`, within `TAPPING_TERM`:
  56. * Mod(a)🠗 e🠗 e🠕 Mod(a)🠕 ae
  57. * With `PERMISSIVE_HOLD`, within `TAPPING_TERM`:
  58. * Mod(a)🠗 e🠗 e🠕 Mod(a)🠕 Mod+e
  59. *
  60. * See docs.qmk.fm/using-qmk/software-features/tap_hold#permissive-hold
  61. */
  62. #define PERMISSIVE_HOLD
  63. /** Charybdis-specific features. */
  64. #ifdef POINTING_DEVICE_ENABLE
  65. // Automatically enable the pointer layer when moving the trackball. See also:
  66. // - `CHARYBDIS_AUTO_POINTER_LAYER_TRIGGER_TIMEOUT_MS`
  67. // - `CHARYBDIS_AUTO_POINTER_LAYER_TRIGGER_THRESHOLD`
  68. // #define CHARYBDIS_AUTO_POINTER_LAYER_TRIGGER_ENABLE
  69. // Flip horizontal direction for drag-scroll.
  70. # define CHARYBDIS_DRAGSCROLL_REVERSE_X
  71. // #define CHARYBDIS_DRAGSCROLL_REVERSE_Y
  72. #endif // POINTING_DEVICE_ENABLE
  73. /** RGB Matrix. */
  74. #ifdef RGB_MATRIX_ENABLE
  75. # ifdef __arm__
  76. // Enable all animations on ARM boards since they have plenty of memory
  77. // available for it.
  78. # define ENABLE_RGB_MATRIX_ALPHAS_MODS
  79. # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  80. # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  81. # define ENABLE_RGB_MATRIX_BREATHING
  82. # define ENABLE_RGB_MATRIX_BAND_SAT
  83. # define ENABLE_RGB_MATRIX_BAND_VAL
  84. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  85. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  86. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  87. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  88. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  89. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  90. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  91. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  92. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  93. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  94. # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  95. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  96. # define ENABLE_RGB_MATRIX_DUAL_BEACON
  97. # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  98. # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  99. # define ENABLE_RGB_MATRIX_RAINDROPS
  100. # define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  101. # define ENABLE_RGB_MATRIX_HUE_BREATHING
  102. # define ENABLE_RGB_MATRIX_HUE_PENDULUM
  103. # define ENABLE_RGB_MATRIX_HUE_WAVE
  104. # define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  105. # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  106. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  107. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  108. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  109. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  110. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  111. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  112. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  113. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  114. # define ENABLE_RGB_MATRIX_SPLASH
  115. # define ENABLE_RGB_MATRIX_MULTISPLASH
  116. # define ENABLE_RGB_MATRIX_SOLID_SPLASH
  117. # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  118. # else
  119. // Disable control of RGB matrix by keycodes (must use firmware implementation
  120. // to control the feature).
  121. # define RGB_MATRIX_DISABLE_KEYCODES
  122. # endif
  123. // Limit maximum brightness to keep power consumption reasonable, and avoid
  124. // disconnects.
  125. # undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
  126. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 64
  127. // Rainbow swirl as startup mode.
  128. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  129. # define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT
  130. // Slow swirl at startup.
  131. # undef RGB_MATRIX_DEFAULT_SPD
  132. # define RGB_MATRIX_DEFAULT_SPD 32
  133. // Startup values.
  134. # undef RGB_MATRIX_DEFAULT_HUE
  135. # define RGB_MATRIX_DEFAULT_HUE 0
  136. # undef RGB_MATRIX_DEFAULT_SAT
  137. # define RGB_MATRIX_DEFAULT_SAT 255
  138. # undef RGB_MATRIX_DEFAULT_VAL
  139. # define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
  140. #endif // RGB_MATRIX_ENABLE