Browse Source

[Keyboard] Minor Aurora Sweep fixes (#18879)

- Fixes compile error with `SWAP_HANDS_ENABLE = yes`
- Fixes OLED, RGB Matrix, and encoder when using QMK Configurator
pull/18888/head
leah-splitkb 1 year ago
committed by GitHub
parent
commit
20ce76f48c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 8 deletions
  1. +7
    -2
      keyboards/splitkb/aurora/sweep/keymaps/debug/rules.mk
  2. +3
    -0
      keyboards/splitkb/aurora/sweep/keymaps/default/keymap.json
  3. +7
    -5
      keyboards/splitkb/aurora/sweep/keymaps/default/readme.md
  4. +4
    -1
      keyboards/splitkb/aurora/sweep/rev1/info.json
  5. +2
    -0
      keyboards/splitkb/aurora/sweep/rev1/rev1.c

+ 7
- 2
keyboards/splitkb/aurora/sweep/keymaps/debug/rules.mk View File

@ -13,6 +13,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
ENCODER_ENABLE = yes
OLED_ENABLE = yes
# NOTE: These are already enabled by default at the revision level
#ENCODER_ENABLE = yes
#OLED_ENABLE = yes
# RGB Matrix is enabled at the revision level,
# while we use the regular RGB underglow for testing
RGB_MATRIX_ENABLE = no
RGBLIGHT_ENABLE = yes

+ 3
- 0
keyboards/splitkb/aurora/sweep/keymaps/default/keymap.json View File

@ -54,6 +54,9 @@
]
],
"config": {
// Support for OLED, RGB, and encoders is already enabled
// by default on the revision level, but we repeat it here
// to make clear that you can disable them to save space.
"features": {
"oled": true,
"rgb_matrix": true,


+ 7
- 5
keyboards/splitkb/aurora/sweep/keymaps/default/readme.md View File

@ -100,26 +100,28 @@ Where is the keymap.c?
The keymap.c file is not published to the repository. It is generated from `keymap.json` by the build system.
This avoids duplicating information and allow users to edit their keymap from the qmk configurator web interface.
This avoids duplicating information and allow users to edit their keymap from the QMK Configurator web interface.
How do I edit and update the keymap?
------------------------------------
The `keymap.json` file is generated from the qmk configurator interface and formatted for better readability in the context of the Ferris keyboard.
The `keymap.json` file is generated from the QMK Configurator interface and formatted for better readability in the context of the Ferris keyboard.
To edit it, you may:
* Edit it directly from a text editor.
* Edit it from the qmk configurator.
* Edit it from the QMK Configurator.
If you decide to use the latter workflow, here are the steps to follow:
* From the qmk configurator, hit the "import QMK keymap json file" button (it has a drawing with an up arrow on it).
* From the [QMK Configurator](https://config.qmk.fm/#/splitkb/aurora/sweep/rev1/LAYOUT_split_3x5_2), hit the "import QMK keymap json file" button (it has a drawing with an up arrow on it).
* Browse to the location of your keymap (for example, `<your qmk repo>/keyboards/splitkb/aurora/sweep/keymaps/default/keymap.json`)
* Perform any modification to the keymap in the web UI
* Export the keymap to your downloads folder, by hitting the "Export QMK keymap json file" button (it has a drawing with a down arrow on it)
* Replace your original keymap with the one you just downloaded
I want to do more than the configurator supports!
_**Note:** At the time of writing (the 24th of October 2022), not every feature used in the default keymap is supported by the QMK Configurator. You cannot yet upload the default `keymap.json` due to a file format mismatch - use the "Load Default" button to load the default keymap instead. Additionally, custom configuration options are still being worked on: if your keymap depends on them, please compile your firmware offline for now._
I want to do more than the JSON format supports!
-------------------------------------------------
While the `json` format is easy to use, it does lack certain functionality - most notably custom OLED or encoder behaviour.


+ 4
- 1
keyboards/splitkb/aurora/sweep/rev1/info.json View File

@ -6,7 +6,9 @@
"features": {
"mousekey": true,
"bootmagic": true,
"extrakey": true
"extrakey": true,
"oled": true,
"rgb_matrix": true
},
"layout_aliases": {
"LAYOUT": "LAYOUT_split_3x5_2"
@ -60,6 +62,7 @@
"cols": ["B6", "D4", "C6", "D7", "E6"]
},
"encoder": {
"enabled": true,
"rotary": [
{
"pin_a": "B5",


+ 2
- 0
keyboards/splitkb/aurora/sweep/rev1/rev1.c View File

@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
#ifdef SWAP_HANDS_ENABLE
// clang-format off
__attribute__ ((weak)) const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {


Loading…
Cancel
Save