aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/feature_swap_hands.md2
-rw-r--r--keyboards/ergo42/ergo42.c2
-rw-r--r--keyboards/ergodone/rules.mk4
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c4
-rwxr-xr-xkeyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk2
-rw-r--r--keyboards/ergodox_ez/rules.mk8
-rw-r--r--keyboards/ergodox_infinity/ergodox_infinity.c2
-rw-r--r--keyboards/ergodox_infinity/keymaps/halfkeyboard/rules.mk2
-rw-r--r--keyboards/ergodox_infinity/rules.mk6
-rw-r--r--keyboards/hadron/keymaps/default/rules.mk4
-rw-r--r--keyboards/hadron/keymaps/side_numpad/rules.mk4
-rw-r--r--keyboards/handwired/dactyl/dactyl.c2
-rw-r--r--keyboards/handwired/dactyl/rules.mk2
-rw-r--r--keyboards/helix/rev1/keymaps/OLED_sample/rules.mk2
-rw-r--r--keyboards/helix/rev2/keymaps/default/rules.mk2
-rw-r--r--keyboards/lets_split/keymaps/OLED_sample/rules.mk4
-rw-r--r--keyboards/lets_split/keymaps/heartrobotninja/rules.mk2
-rw-r--r--keyboards/lets_split/keymaps/mjt/rules.mk4
-rw-r--r--keyboards/lets_split/lets_split.c2
-rw-r--r--keyboards/levinson/levinson.c2
-rw-r--r--keyboards/mitosis/mitosis.c2
-rw-r--r--keyboards/niu_mini/niu_mini.c2
-rw-r--r--keyboards/planck/keymaps/experimental/rules.mk2
-rw-r--r--keyboards/planck/planck.c2
-rw-r--r--keyboards/preonic/preonic.c2
-rw-r--r--tmk_core/common.mk7
-rw-r--r--tmk_core/common/action.c6
-rw-r--r--tmk_core/common/action.h2
28 files changed, 45 insertions, 42 deletions
diff --git a/docs/feature_swap_hands.md b/docs/feature_swap_hands.md
index 42f9e0867..61c66a2c1 100644
--- a/docs/feature_swap_hands.md
+++ b/docs/feature_swap_hands.md
@@ -1,6 +1,6 @@
1# Swap-Hands Action 1# Swap-Hands Action
2 2
3The swap-hands action allows support for one-handed typing without requiring a separate layer. Set `ONEHAND_ENABLE` in the Makefile and define a `hand_swap_config` entry in your keymap. Now whenever the `ACTION_SWAP_HANDS` command key is pressed the keyboard is mirrored. For instance, to type "Hello, World" on QWERTY you would type `^Ge^s^s^w^c W^wr^sd` 3The swap-hands action allows support for one-handed typing without requiring a separate layer. Set `SWAP_HANDS_ENABLE` in the Makefile and define a `hand_swap_config` entry in your keymap. Now whenever the `ACTION_SWAP_HANDS` command key is pressed the keyboard is mirrored. For instance, to type "Hello, World" on QWERTY you would type `^Ge^s^s^w^c W^wr^sd`
4 4
5## Configuration 5## Configuration
6 6
diff --git a/keyboards/ergo42/ergo42.c b/keyboards/ergo42/ergo42.c
index 9954f5c4c..e42dcb226 100644
--- a/keyboards/ergo42/ergo42.c
+++ b/keyboards/ergo42/ergo42.c
@@ -1,6 +1,6 @@
1#include "ergo42.h" 1#include "ergo42.h"
2 2
3#ifdef ONEHAND_ENABLE 3#ifdef SWAP_HANDS_ENABLE
4__attribute__ ((weak)) 4__attribute__ ((weak))
5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
6 6
diff --git a/keyboards/ergodone/rules.mk b/keyboards/ergodone/rules.mk
index dee7a14e0..6acfaf92e 100644
--- a/keyboards/ergodone/rules.mk
+++ b/keyboards/ergodone/rules.mk
@@ -5,7 +5,7 @@
5# 5#
6# make clean = Clean out built project files. 6# make clean = Clean out built project files.
7# 7#
8# That's pretty much all you need. To compile, always go make clean, 8# That's pretty much all you need. To compile, always go make clean,
9# followed by make. 9# followed by make.
10# 10#
11# For advanced users only: 11# For advanced users only:
@@ -88,7 +88,7 @@ FADING_LED_ENABLE = no # Enable fading backlight
88BREATHING_LED_ENABLE = no # Enable breathing backlight 88BREATHING_LED_ENABLE = no # Enable breathing backlight
89LEDMAP_ENABLE = no # Enable LED mapping 89LEDMAP_ENABLE = no # Enable LED mapping
90LEDMAP_IN_EEPROM_ENABLE = no # Read LED mapping from eeprom 90LEDMAP_IN_EEPROM_ENABLE = no # Read LED mapping from eeprom
91ONEHAND_ENABLE = no # Disable Onehand 91SWAP_HANDS_ENABLE = no # Disable Onehand
92RGBLIGHT_ENABLE = no 92RGBLIGHT_ENABLE = no
93MIDI_ENABLE = no 93MIDI_ENABLE = no
94 94
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index 5f197cb2d..437411856 100644
--- a/keyboards/ergodox_ez/ergodox_ez.c
+++ b/keyboards/ergodox_ez/ergodox_ez.c
@@ -100,7 +100,7 @@ void ergodox_blink_all_leds(void)
100 mcp23018_status = ergodox_left_leds_update(); 100 mcp23018_status = ergodox_left_leds_update();
101 } 101 }
102#endif 102#endif
103 103
104 //ergodox_led_all_on(); 104 //ergodox_led_all_on();
105 //_delay_ms(333); 105 //_delay_ms(333);
106 ergodox_led_all_off(); 106 ergodox_led_all_off();
@@ -185,7 +185,7 @@ uint8_t ergodox_left_leds_update(void) {
185#endif 185#endif
186 186
187 187
188#ifdef ONEHAND_ENABLE 188#ifdef SWAP_HANDS_ENABLE
189__attribute__ ((weak)) 189__attribute__ ((weak))
190// swap-hands action needs a matrix to define the swap 190// swap-hands action needs a matrix to define the swap
191const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 191const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
diff --git a/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk b/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk
index 6ed55e72b..6d20fcf76 100755
--- a/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk
+++ b/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk
@@ -2,7 +2,7 @@ MOUSEKEY_ENABLE = yes # Mouse keys
2EXTRAKEY_ENABLE = yes # Audio control and System control 2EXTRAKEY_ENABLE = yes # Audio control and System control
3COMMAND_ENABLE = yes # Commands for debug and configuration 3COMMAND_ENABLE = yes # Commands for debug and configuration
4NKRO_ENABLE = yes # USB Nkey Rollover - for issues, see github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 4NKRO_ENABLE = yes # USB Nkey Rollover - for issues, see github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
5ONEHAND_ENABLE = yes # Allow swapping hands of keyboard 5SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard
6KEY_LOCK_ENABLE = yes # Enable the KC_LOCK key 6KEY_LOCK_ENABLE = yes # Enable the KC_LOCK key
7TAP_DANCE_ENABLE = yes # Enable the tap dance feature. 7TAP_DANCE_ENABLE = yes # Enable the tap dance feature.
8CONSOLE_ENABLE = yes # Console for debug 8CONSOLE_ENABLE = yes # Console for debug
diff --git a/keyboards/ergodox_ez/rules.mk b/keyboards/ergodox_ez/rules.mk
index 4d2c46108..5ee9d5cb8 100644
--- a/keyboards/ergodox_ez/rules.mk
+++ b/keyboards/ergodox_ez/rules.mk
@@ -5,7 +5,7 @@
5# 5#
6# make clean = Clean out built project files. 6# make clean = Clean out built project files.
7# 7#
8# That's pretty much all you need. To compile, always go make clean, 8# That's pretty much all you need. To compile, always go make clean,
9# followed by make. 9# followed by make.
10# 10#
11# For advanced users only: 11# For advanced users only:
@@ -56,7 +56,7 @@ F_USB = $(F_CPU)
56 56
57# Bootloader 57# Bootloader
58# This definition is optional, and if your keyboard supports multiple bootloaders of 58# This definition is optional, and if your keyboard supports multiple bootloaders of
59# different sizes, comment this out, and the correct address will be loaded 59# different sizes, comment this out, and the correct address will be loaded
60# automatically (+60). See bootloader.mk for all options. 60# automatically (+60). See bootloader.mk for all options.
61BOOTLOADER = halfkay 61BOOTLOADER = halfkay
62 62
@@ -79,9 +79,9 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
79CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ 79CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ
80NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 80NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
81UNICODE_ENABLE = yes # Unicode 81UNICODE_ENABLE = yes # Unicode
82ONEHAND_ENABLE = yes # Allow swapping hands of keyboard 82SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard
83SLEEP_LED_ENABLE = no 83SLEEP_LED_ENABLE = no
84API_SYSEX_ENABLE = no 84API_SYSEX_ENABLE = no
85RGBLIGHT_ENABLE = yes 85RGBLIGHT_ENABLE = yes
86 86
87LAYOUTS = ergodox \ No newline at end of file 87LAYOUTS = ergodox
diff --git a/keyboards/ergodox_infinity/ergodox_infinity.c b/keyboards/ergodox_infinity/ergodox_infinity.c
index 87e1b524b..9fda7991f 100644
--- a/keyboards/ergodox_infinity/ergodox_infinity.c
+++ b/keyboards/ergodox_infinity/ergodox_infinity.c
@@ -174,7 +174,7 @@ __attribute__ ((weak))
174void ergodox_right_led_3_set(uint8_t n) { 174void ergodox_right_led_3_set(uint8_t n) {
175} 175}
176 176
177#ifdef ONEHAND_ENABLE 177#ifdef SWAP_HANDS_ENABLE
178__attribute__ ((weak)) 178__attribute__ ((weak))
179const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 179const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
180 {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}}, 180 {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}},
diff --git a/keyboards/ergodox_infinity/keymaps/halfkeyboard/rules.mk b/keyboards/ergodox_infinity/keymaps/halfkeyboard/rules.mk
index 74881c981..2d3597ceb 100644
--- a/keyboards/ergodox_infinity/keymaps/halfkeyboard/rules.mk
+++ b/keyboards/ergodox_infinity/keymaps/halfkeyboard/rules.mk
@@ -67,7 +67,7 @@ CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ
67SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend 67SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
68NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 68NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
69UNICODE_ENABLE = yes # Unicode 69UNICODE_ENABLE = yes # Unicode
70ONEHAND_ENABLE = yes # Allow swapping hands of keyboard 70SWAP_HANDS_ENABLE = yes # Allow swapping hands of keyboard
71STENO_ENABLE = yes #enable plover steno mode 71STENO_ENABLE = yes #enable plover steno mode
72CUSTOM_MATRIX = yes # Custom matrix file 72CUSTOM_MATRIX = yes # Custom matrix file
73SERIAL_LINK_ENABLE = yes 73SERIAL_LINK_ENABLE = yes
diff --git a/keyboards/ergodox_infinity/rules.mk b/keyboards/ergodox_infinity/rules.mk
index e1cef51c1..c243c258b 100644
--- a/keyboards/ergodox_infinity/rules.mk
+++ b/keyboards/ergodox_infinity/rules.mk
@@ -67,7 +67,7 @@ CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ
67SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend 67SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
68NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 68NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
69UNICODE_ENABLE = yes # Unicode 69UNICODE_ENABLE = yes # Unicode
70ONEHAND_ENABLE = yes # Allow swapping hands of keyboard 70SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard
71 71
72CUSTOM_MATRIX = yes # Custom matrix file 72CUSTOM_MATRIX = yes # Custom matrix file
73SERIAL_LINK_ENABLE = yes 73SERIAL_LINK_ENABLE = yes
@@ -79,11 +79,11 @@ MIDI_ENABLE = no
79RGBLIGHT_ENABLE = no 79RGBLIGHT_ENABLE = no
80 80
81LCD_DRIVER = st7565 81LCD_DRIVER = st7565
82LCD_WIDTH = 128 82LCD_WIDTH = 128
83LCD_HEIGHT = 32 83LCD_HEIGHT = 32
84 84
85LED_DRIVER = is31fl3731c 85LED_DRIVER = is31fl3731c
86LED_WIDTH = 7 86LED_WIDTH = 7
87LED_HEIGHT = 7 87LED_HEIGHT = 7
88 88
89LAYOUTS = ergodox 89LAYOUTS = ergodox
diff --git a/keyboards/hadron/keymaps/default/rules.mk b/keyboards/hadron/keymaps/default/rules.mk
index e24ba04b5..1f3975255 100644
--- a/keyboards/hadron/keymaps/default/rules.mk
+++ b/keyboards/hadron/keymaps/default/rules.mk
@@ -1,7 +1,7 @@
1 1
2 2
3# Build Options 3# Build Options
4# change to "no" to disable the options, or define them in the Makefile in 4# change to "no" to disable the options, or define them in the Makefile in
5# the appropriate keymap folder that will get included automatically 5# the appropriate keymap folder that will get included automatically
6# 6#
7BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 7BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
@@ -16,7 +16,7 @@ AUDIO_ENABLE = no # Audio output on port C6
16UNICODE_ENABLE = no # Unicode 16UNICODE_ENABLE = no # Unicode
17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
18RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 18RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
19ONEHAND_ENABLE = no # Enable one-hand typing 19SWAP_HANDS_ENABLE = no # Enable one-hand typing
20 20
21# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 21# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/hadron/keymaps/side_numpad/rules.mk b/keyboards/hadron/keymaps/side_numpad/rules.mk
index 5cdc186cd..d9fabc1ac 100644
--- a/keyboards/hadron/keymaps/side_numpad/rules.mk
+++ b/keyboards/hadron/keymaps/side_numpad/rules.mk
@@ -1,7 +1,7 @@
1 1
2 2
3# Build Options 3# Build Options
4# change to "no" to disable the options, or define them in the Makefile in 4# change to "no" to disable the options, or define them in the Makefile in
5# the appropriate keymap folder that will get included automatically 5# the appropriate keymap folder that will get included automatically
6# 6#
7BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 7BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
@@ -16,7 +16,7 @@ AUDIO_ENABLE = no # Audio output on port C6
16UNICODE_ENABLE = no # Unicode 16UNICODE_ENABLE = no # Unicode
17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
18RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 18RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
19ONEHAND_ENABLE = no # Enable one-hand typing 19SWAP_HANDS_ENABLE = no # Enable one-hand typing
20 20
21# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 21# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/handwired/dactyl/dactyl.c b/keyboards/handwired/dactyl/dactyl.c
index 3f59154fd..abe3d9d60 100644
--- a/keyboards/handwired/dactyl/dactyl.c
+++ b/keyboards/handwired/dactyl/dactyl.c
@@ -57,7 +57,7 @@ out:
57 return mcp23018_status; 57 return mcp23018_status;
58} 58}
59 59
60#ifdef ONEHAND_ENABLE 60#ifdef SWAP_HANDS_ENABLE
61__attribute__ ((weak)) 61__attribute__ ((weak))
62// swap-hands action needs a matrix to define the swap 62// swap-hands action needs a matrix to define the swap
63const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 63const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
diff --git a/keyboards/handwired/dactyl/rules.mk b/keyboards/handwired/dactyl/rules.mk
index 90a29bd2d..dc25f9c3f 100644
--- a/keyboards/handwired/dactyl/rules.mk
+++ b/keyboards/handwired/dactyl/rules.mk
@@ -80,7 +80,7 @@ COMMAND_ENABLE = no # Commands for debug and configuration
80CUSTOM_MATRIX = yes # Custom matrix file for the Dactyl 80CUSTOM_MATRIX = yes # Custom matrix file for the Dactyl
81NKRO_ENABLE = yes # USB Nkey Rollover 81NKRO_ENABLE = yes # USB Nkey Rollover
82UNICODE_ENABLE = yes # Unicode 82UNICODE_ENABLE = yes # Unicode
83ONEHAND_ENABLE = yes # Allow swapping hands of keyboard 83SWAP_HANDS_ENABLE = yes # Allow swapping hands of keyboard
84SLEEP_LED_ENABLE = no 84SLEEP_LED_ENABLE = no
85API_SYSEX_ENABLE = no 85API_SYSEX_ENABLE = no
86RGBLIGHT_ENABLE = no 86RGBLIGHT_ENABLE = no
diff --git a/keyboards/helix/rev1/keymaps/OLED_sample/rules.mk b/keyboards/helix/rev1/keymaps/OLED_sample/rules.mk
index 67a0ff2d8..3f8fd5dc6 100644
--- a/keyboards/helix/rev1/keymaps/OLED_sample/rules.mk
+++ b/keyboards/helix/rev1/keymaps/OLED_sample/rules.mk
@@ -15,7 +15,7 @@ AUDIO_ENABLE = no # Audio output on port C6
15UNICODE_ENABLE = no # Unicode 15UNICODE_ENABLE = no # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 17RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
18ONEHAND_ENABLE = no # Enable one-hand typing 18SWAP_HANDS_ENABLE = no # Enable one-hand typing
19 19
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/helix/rev2/keymaps/default/rules.mk b/keyboards/helix/rev2/keymaps/default/rules.mk
index f4d345435..dc4187c08 100644
--- a/keyboards/helix/rev2/keymaps/default/rules.mk
+++ b/keyboards/helix/rev2/keymaps/default/rules.mk
@@ -17,7 +17,7 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17# Helix keyboard : see ./config.h: RGBLED_NUM 6 or 32 17# Helix keyboard : see ./config.h: RGBLED_NUM 6 or 32
18# Helix keyboard : RGBLIGHT_ENABLE = no or yes 18# Helix keyboard : RGBLIGHT_ENABLE = no or yes
19RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 19RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
20ONEHAND_ENABLE = no # Enable one-hand typing 20SWAP_HANDS_ENABLE = no # Enable one-hand typing
21 21
22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/lets_split/keymaps/OLED_sample/rules.mk b/keyboards/lets_split/keymaps/OLED_sample/rules.mk
index 90616d1f1..874d09eab 100644
--- a/keyboards/lets_split/keymaps/OLED_sample/rules.mk
+++ b/keyboards/lets_split/keymaps/OLED_sample/rules.mk
@@ -1,6 +1,6 @@
1 1
2# Build Options 2# Build Options
3# change to "no" to disable the options, or define them in the Makefile in 3# change to "no" to disable the options, or define them in the Makefile in
4# the appropriate keymap folder that will get included automatically 4# the appropriate keymap folder that will get included automatically
5# 5#
6BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 6BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
@@ -15,7 +15,7 @@ AUDIO_ENABLE = no # Audio output on port C6
15UNICODE_ENABLE = no # Unicode 15UNICODE_ENABLE = no # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 17RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
18ONEHAND_ENABLE = no # Enable one-hand typing 18SWAP_HANDS_ENABLE = no # Enable one-hand typing
19 19
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/lets_split/keymaps/heartrobotninja/rules.mk b/keyboards/lets_split/keymaps/heartrobotninja/rules.mk
index d5e58dad4..2261a848a 100644
--- a/keyboards/lets_split/keymaps/heartrobotninja/rules.mk
+++ b/keyboards/lets_split/keymaps/heartrobotninja/rules.mk
@@ -15,7 +15,7 @@ AUDIO_ENABLE = no # Audio output on port C6
15UNICODE_ENABLE = no # Unicode 15UNICODE_ENABLE = no # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 17RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
18ONEHAND_ENABLE = no # Enable one-hand typing 18SWAP_HANDS_ENABLE = no # Enable one-hand typing
19 19
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/lets_split/keymaps/mjt/rules.mk b/keyboards/lets_split/keymaps/mjt/rules.mk
index 90616d1f1..874d09eab 100644
--- a/keyboards/lets_split/keymaps/mjt/rules.mk
+++ b/keyboards/lets_split/keymaps/mjt/rules.mk
@@ -1,6 +1,6 @@
1 1
2# Build Options 2# Build Options
3# change to "no" to disable the options, or define them in the Makefile in 3# change to "no" to disable the options, or define them in the Makefile in
4# the appropriate keymap folder that will get included automatically 4# the appropriate keymap folder that will get included automatically
5# 5#
6BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 6BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
@@ -15,7 +15,7 @@ AUDIO_ENABLE = no # Audio output on port C6
15UNICODE_ENABLE = no # Unicode 15UNICODE_ENABLE = no # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 17RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
18ONEHAND_ENABLE = no # Enable one-hand typing 18SWAP_HANDS_ENABLE = no # Enable one-hand typing
19 19
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/lets_split/lets_split.c b/keyboards/lets_split/lets_split.c
index 914cf2698..c400ab7bb 100644
--- a/keyboards/lets_split/lets_split.c
+++ b/keyboards/lets_split/lets_split.c
@@ -1,6 +1,6 @@
1#include "lets_split.h" 1#include "lets_split.h"
2 2
3#ifdef ONEHAND_ENABLE 3#ifdef SWAP_HANDS_ENABLE
4__attribute__ ((weak)) 4__attribute__ ((weak))
5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
6 6
diff --git a/keyboards/levinson/levinson.c b/keyboards/levinson/levinson.c
index 2c993daec..95f3fe9ef 100644
--- a/keyboards/levinson/levinson.c
+++ b/keyboards/levinson/levinson.c
@@ -1,6 +1,6 @@
1#include "levinson.h" 1#include "levinson.h"
2 2
3#ifdef ONEHAND_ENABLE 3#ifdef SWAP_HANDS_ENABLE
4__attribute__ ((weak)) 4__attribute__ ((weak))
5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
6 6
diff --git a/keyboards/mitosis/mitosis.c b/keyboards/mitosis/mitosis.c
index 61a26c662..f965f2a04 100644
--- a/keyboards/mitosis/mitosis.c
+++ b/keyboards/mitosis/mitosis.c
@@ -30,7 +30,7 @@ void led_set_kb(uint8_t usb_led) {
30 30
31} 31}
32 32
33#ifdef ONEHAND_ENABLE 33#ifdef SWAP_HANDS_ENABLE
34__attribute__ ((weak)) 34__attribute__ ((weak))
35const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 35const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
36{{9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, 36{{9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}},
diff --git a/keyboards/niu_mini/niu_mini.c b/keyboards/niu_mini/niu_mini.c
index f1607df55..60df62b9e 100644
--- a/keyboards/niu_mini/niu_mini.c
+++ b/keyboards/niu_mini/niu_mini.c
@@ -1,6 +1,6 @@
1#include "niu_mini.h" 1#include "niu_mini.h"
2 2
3#ifdef ONEHAND_ENABLE 3#ifdef SWAP_HANDS_ENABLE
4__attribute__ ((weak)) 4__attribute__ ((weak))
5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
6 {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, 6 {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}},
diff --git a/keyboards/planck/keymaps/experimental/rules.mk b/keyboards/planck/keymaps/experimental/rules.mk
index 29108e522..b135dfca0 100644
--- a/keyboards/planck/keymaps/experimental/rules.mk
+++ b/keyboards/planck/keymaps/experimental/rules.mk
@@ -16,7 +16,7 @@ AUDIO_ENABLE = no # Audio output on port C6
16UNICODE_ENABLE = no # Unicode 16UNICODE_ENABLE = no # Unicode
17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
18RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 18RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
19ONEHAND_ENABLE = yes # Enable one-hand typing 19SWAP_HANDS_ENABLE = yes # Enable one-hand typing
20STENO_ENABLE = yes # Enable TX Bolt protocol for Stenography, requires VIRTSER and may not work with mouse keys 20STENO_ENABLE = yes # Enable TX Bolt protocol for Stenography, requires VIRTSER and may not work with mouse keys
21 21
22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
diff --git a/keyboards/planck/planck.c b/keyboards/planck/planck.c
index 1d2f91bc5..6ac789cbe 100644
--- a/keyboards/planck/planck.c
+++ b/keyboards/planck/planck.c
@@ -1,6 +1,6 @@
1#include "planck.h" 1#include "planck.h"
2 2
3#ifdef ONEHAND_ENABLE 3#ifdef SWAP_HANDS_ENABLE
4__attribute__ ((weak)) 4__attribute__ ((weak))
5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
6 {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, 6 {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}},
diff --git a/keyboards/preonic/preonic.c b/keyboards/preonic/preonic.c
index d9c119b8d..637a73ab8 100644
--- a/keyboards/preonic/preonic.c
+++ b/keyboards/preonic/preonic.c
@@ -1,6 +1,6 @@
1#include "preonic.h" 1#include "preonic.h"
2 2
3#ifdef ONEHAND_ENABLE 3#ifdef SWAP_HANDS_ENABLE
4__attribute__ ((weak)) 4__attribute__ ((weak))
5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { 5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
6 {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, 6 {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}},
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index 75b810d98..f12073525 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -25,7 +25,7 @@ TMK_COMMON_SRC += $(COMMON_DIR)/host.c \
25 25
26ifeq ($(PLATFORM),AVR) 26ifeq ($(PLATFORM),AVR)
27 TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/xprintf.S 27 TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/xprintf.S
28endif 28endif
29 29
30ifeq ($(PLATFORM),CHIBIOS) 30ifeq ($(PLATFORM),CHIBIOS)
31 TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/printf.c 31 TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/printf.c
@@ -124,7 +124,10 @@ ifeq ($(strip $(BLUETOOTH)), RN42)
124endif 124endif
125 125
126ifeq ($(strip $(ONEHAND_ENABLE)), yes) 126ifeq ($(strip $(ONEHAND_ENABLE)), yes)
127 TMK_COMMON_DEFS += -DONEHAND_ENABLE 127 SWAP_HANDS_ENABLE = yes # backwards compatibility
128endif
129ifeq ($(strip $(SWAP_HANDS_ENABLE)), yes)
130 TMK_COMMON_DEFS += -DSWAP_HANDS_ENABLE
128endif 131endif
129 132
130ifeq ($(strip $(NO_USB_STARTUP_CHECK)), yes) 133ifeq ($(strip $(NO_USB_STARTUP_CHECK)), yes)
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c
index dd3a5b3ee..947e5118f 100644
--- a/tmk_core/common/action.c
+++ b/tmk_core/common/action.c
@@ -64,7 +64,7 @@ void action_exec(keyevent_t event)
64 fauxclicky_check(); 64 fauxclicky_check();
65#endif 65#endif
66 66
67#ifdef ONEHAND_ENABLE 67#ifdef SWAP_HANDS_ENABLE
68 if (!IS_NOEVENT(event)) { 68 if (!IS_NOEVENT(event)) {
69 process_hand_swap(&event); 69 process_hand_swap(&event);
70 } 70 }
@@ -91,7 +91,7 @@ void action_exec(keyevent_t event)
91#endif 91#endif
92} 92}
93 93
94#ifdef ONEHAND_ENABLE 94#ifdef SWAP_HANDS_ENABLE
95bool swap_hands = false; 95bool swap_hands = false;
96 96
97void process_hand_swap(keyevent_t *event) { 97void process_hand_swap(keyevent_t *event) {
@@ -524,7 +524,7 @@ void process_action(keyrecord_t *record, action_t action)
524#endif 524#endif
525 case ACT_COMMAND: 525 case ACT_COMMAND:
526 break; 526 break;
527#ifdef ONEHAND_ENABLE 527#ifdef SWAP_HANDS_ENABLE
528 case ACT_SWAP_HANDS: 528 case ACT_SWAP_HANDS:
529 switch (action.swap.code) { 529 switch (action.swap.code) {
530 case OP_SH_TOGGLE: 530 case OP_SH_TOGGLE:
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h
index b9bdfe642..87027dede 100644
--- a/tmk_core/common/action.h
+++ b/tmk_core/common/action.h
@@ -67,7 +67,7 @@ extern bool disable_action_cache;
67#endif 67#endif
68 68
69/* Code for handling one-handed key modifiers. */ 69/* Code for handling one-handed key modifiers. */
70#ifdef ONEHAND_ENABLE 70#ifdef SWAP_HANDS_ENABLE
71extern bool swap_hands; 71extern bool swap_hands;
72extern const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS]; 72extern const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS];
73#if (MATRIX_COLS <= 8) 73#if (MATRIX_COLS <= 8)