aboutsummaryrefslogtreecommitdiff
path: root/keyboards/boardsource
diff options
context:
space:
mode:
authorJames Young <18669334+noroadsleft@users.noreply.github.com>2021-08-15 20:51:13 +0000
committerGitHub <noreply@github.com>2021-08-16 06:51:13 +1000
commit4b453dca92f87899d98b5340b16677bd78a52beb (patch)
treea40b8e53964520762946e0c63bfc0a83cb2a3428 /keyboards/boardsource
parentfd340f8957055d74b26a5ddc490253fcc8a3a2f7 (diff)
downloadqmk_firmware-4b453dca92f87899d98b5340b16677bd78a52beb.tar.gz
qmk_firmware-4b453dca92f87899d98b5340b16677bd78a52beb.zip
Remove MIDI Configuration boilerplate (#11151)
* remove keyboard-level instances of `MIDI_ENABLE = no` Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e '/^[ #]*MIDI_ENABLE[ \t]*=[ \t]*no/d' {} + ``` Co-Authored-By: Nick Brassel <nick@tzarc.org> * fix case-sensitivity issues on MIDI_ENABLE Change instances of `MIDI_ENABLE = YES` to `MIDI_ENABLE = yes`. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;MIDI_ENABLE[ \t]*=[ \t]*[Yy][Ee][Ss];MIDI_ENABLE = yes;g' {} + ``` * replace `# MIDI controls` with `# MIDI support` Replace `# MIDI controls` with `# MIDI support` in keyboard-level `rules.mk` files. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;#[ \t]*MIDI[ \t]*\(controls\|support\).*;# MIDI support;g' {} + ``` * align inline comments Aligns the inline comments to the length used by the QMK AVR rules.mk template. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;MIDI_ENABLE *= *yes.*;MIDI_ENABLE = yes # MIDI support;g' {} + ``` * remove commented instances of `MIDI_ENABLE` from keyboard `rules.mk` files Commands: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;#\([ \t]*MIDI_ENABLE\) = yes; \1 = no ;' {} + find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;^\([ \t]*\)\(MIDI_ENABLE = no\);\2\1;' {} + find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e '/^[ #]\+MIDI_ENABLE *= *no/d' {} + ``` * remove MIDI configuration boilerplate from keyboard config.h files Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/boardsource')
-rw-r--r--keyboards/boardsource/3x4/config.h20
-rw-r--r--keyboards/boardsource/4x12/config.h20
-rw-r--r--keyboards/boardsource/4x12/rules.mk1
-rw-r--r--keyboards/boardsource/5x12/config.h20
-rw-r--r--keyboards/boardsource/5x12/rules.mk1
5 files changed, 0 insertions, 62 deletions
diff --git a/keyboards/boardsource/3x4/config.h b/keyboards/boardsource/3x4/config.h
index 32a0b3d29..a07968a44 100644
--- a/keyboards/boardsource/3x4/config.h
+++ b/keyboards/boardsource/3x4/config.h
@@ -118,23 +118,3 @@
118//#define NO_ACTION_ONESHOT 118//#define NO_ACTION_ONESHOT
119//#define NO_ACTION_MACRO 119//#define NO_ACTION_MACRO
120//#define NO_ACTION_FUNCTION 120//#define NO_ACTION_FUNCTION
121
122/*
123 * MIDI options
124 */
125
126/* enable basic MIDI features:
127 - MIDI notes can be sent when in Music mode is on
128*/
129//#define MIDI_BASIC
130
131/* enable advanced MIDI features:
132 - MIDI notes can be added to the keymap
133 - Octave shift and transpose
134 - Virtual sustain, portamento, and modulation wheel
135 - etc.
136*/
137//#define MIDI_ADVANCED
138
139/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
140//#define MIDI_TONE_KEYCODE_OCTAVES 1
diff --git a/keyboards/boardsource/4x12/config.h b/keyboards/boardsource/4x12/config.h
index 6125260cd..2ba19356d 100644
--- a/keyboards/boardsource/4x12/config.h
+++ b/keyboards/boardsource/4x12/config.h
@@ -116,23 +116,3 @@
116//#define NO_ACTION_ONESHOT 116//#define NO_ACTION_ONESHOT
117//#define NO_ACTION_MACRO 117//#define NO_ACTION_MACRO
118//#define NO_ACTION_FUNCTION 118//#define NO_ACTION_FUNCTION
119
120/*
121 * MIDI options
122 */
123
124/* enable basic MIDI features:
125 - MIDI notes can be sent when in Music mode is on
126*/
127//#define MIDI_BASIC
128
129/* enable advanced MIDI features:
130 - MIDI notes can be added to the keymap
131 - Octave shift and transpose
132 - Virtual sustain, portamento, and modulation wheel
133 - etc.
134*/
135//#define MIDI_ADVANCED
136
137/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
138//#define MIDI_TONE_KEYCODE_OCTAVES 1
diff --git a/keyboards/boardsource/4x12/rules.mk b/keyboards/boardsource/4x12/rules.mk
index c0b4814f6..42a4bba7c 100644
--- a/keyboards/boardsource/4x12/rules.mk
+++ b/keyboards/boardsource/4x12/rules.mk
@@ -24,7 +24,6 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
25NKRO_ENABLE = no # USB Nkey Rollover 25NKRO_ENABLE = no # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
27MIDI_ENABLE = no # MIDI support
28UNICODE_ENABLE = no # Unicode 27UNICODE_ENABLE = no # Unicode
29BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 28BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
30AUDIO_ENABLE = no # Audio output on port C6 29AUDIO_ENABLE = no # Audio output on port C6
diff --git a/keyboards/boardsource/5x12/config.h b/keyboards/boardsource/5x12/config.h
index 3628431d7..80ac30072 100644
--- a/keyboards/boardsource/5x12/config.h
+++ b/keyboards/boardsource/5x12/config.h
@@ -117,23 +117,3 @@
117//#define NO_ACTION_ONESHOT 117//#define NO_ACTION_ONESHOT
118//#define NO_ACTION_MACRO 118//#define NO_ACTION_MACRO
119//#define NO_ACTION_FUNCTION 119//#define NO_ACTION_FUNCTION
120
121/*
122 * MIDI options
123 */
124
125/* enable basic MIDI features:
126 - MIDI notes can be sent when in Music mode is on
127*/
128//#define MIDI_BASIC
129
130/* enable advanced MIDI features:
131 - MIDI notes can be added to the keymap
132 - Octave shift and transpose
133 - Virtual sustain, portamento, and modulation wheel
134 - etc.
135*/
136//#define MIDI_ADVANCED
137
138/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
139//#define MIDI_TONE_KEYCODE_OCTAVES 1
diff --git a/keyboards/boardsource/5x12/rules.mk b/keyboards/boardsource/5x12/rules.mk
index 0e5118c78..8dc8fe1cc 100644
--- a/keyboards/boardsource/5x12/rules.mk
+++ b/keyboards/boardsource/5x12/rules.mk
@@ -24,7 +24,6 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
25NKRO_ENABLE = no # USB Nkey Rollover 25NKRO_ENABLE = no # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
27MIDI_ENABLE = no # MIDI support
28UNICODE_ENABLE = no # Unicode 27UNICODE_ENABLE = no # Unicode
29BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 28BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
30AUDIO_ENABLE = no # Audio output on port C6 29AUDIO_ENABLE = no # Audio output on port C6