diff options
| author | Gabriel Young <gabeplaysdrums@live.com> | 2017-02-19 17:45:08 -0800 |
|---|---|---|
| committer | Gabriel Young <gabeplaysdrums@live.com> | 2017-02-19 17:45:08 -0800 |
| commit | ed15973a3ffff6e18e62f81654632b97961f18d2 (patch) | |
| tree | aedd3c466e3318e2e5e4945e00b4acad2f243386 | |
| parent | d1fe24ad9f85768774ae50465c71f3757a33cc00 (diff) | |
| download | qmk_firmware-ed15973a3ffff6e18e62f81654632b97961f18d2.tar.gz qmk_firmware-ed15973a3ffff6e18e62f81654632b97961f18d2.zip | |
Document size added by MIDI_ENABLE (~3800 bytes according to my experiments)
satan/keymaps/midi
MIDI_ENABLE = no
text data bss dec hex filename
0 17080 0 17080 42b8 satan_midi.hex
MIDI_ENABLE = yes
#define MIDI_TONE_KEYCODE_OCTAVES 3 // default
text data bss dec hex filename
0 20846 0 20846 516e satan_midi.hex
MIDI_ENABLE = yes
#define MIDI_TONE_KEYCODE_OCTAVES 2 // fewer octaves
text data bss dec hex filename
0 20846 0 20846 516e satan_midi.hex
| -rw-r--r-- | keyboards/satan/keymaps/midi/Makefile | 2 | ||||
| -rw-r--r-- | keyboards/satan/keymaps/midi/config.h | 2 | ||||
| -rw-r--r-- | keyboards/satan/keymaps/midi/keymap.c | 2 | ||||
| -rw-r--r-- | quantum/process_keycode/process_midi.c | 2 | ||||
| -rw-r--r-- | quantum/template/config.h | 2 | ||||
| -rw-r--r-- | quantum/template/keymaps/default/Makefile | 2 |
6 files changed, 8 insertions, 4 deletions
diff --git a/keyboards/satan/keymaps/midi/Makefile b/keyboards/satan/keymaps/midi/Makefile index 5cbda96ce..4e2d9d2f7 100644 --- a/keyboards/satan/keymaps/midi/Makefile +++ b/keyboards/satan/keymaps/midi/Makefile | |||
| @@ -9,7 +9,7 @@ CONSOLE_ENABLE = no # Console for debug(+400) | |||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | 9 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 11 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 11 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 12 | MIDI_ENABLE = yes # MIDI controls | 12 | MIDI_ENABLE = yes # MIDI support (+3800) |
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | 13 | AUDIO_ENABLE = no # Audio output on port C6 |
| 14 | UNICODE_ENABLE = no # Unicode | 14 | UNICODE_ENABLE = no # Unicode |
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
diff --git a/keyboards/satan/keymaps/midi/config.h b/keyboards/satan/keymaps/midi/config.h index e345d40c9..0dbdb5cbc 100644 --- a/keyboards/satan/keymaps/midi/config.h +++ b/keyboards/satan/keymaps/midi/config.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | // place overrides here | 6 | // place overrides here |
| 7 | 7 | ||
| 8 | /* override number of MIDI tone keycodes (each octave adds 12 bytes) */ | 8 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ |
| 9 | #define MIDI_TONE_KEYCODE_OCTAVES 2 | 9 | #define MIDI_TONE_KEYCODE_OCTAVES 2 |
| 10 | 10 | ||
| 11 | #endif \ No newline at end of file | 11 | #endif \ No newline at end of file |
diff --git a/keyboards/satan/keymaps/midi/keymap.c b/keyboards/satan/keymaps/midi/keymap.c index ac9725933..004690f41 100644 --- a/keyboards/satan/keymaps/midi/keymap.c +++ b/keyboards/satan/keymaps/midi/keymap.c | |||
| @@ -32,6 +32,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 32 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, \ | 32 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, \ |
| 33 | KC_LCTL, KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, TG(_ML), KC_RCTL), | 33 | KC_LCTL, KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, TG(_ML), KC_RCTL), |
| 34 | 34 | ||
| 35 | #ifdef MIDI_ENABLE | ||
| 35 | /* Keymap _ML: MIDI Layer | 36 | /* Keymap _ML: MIDI Layer |
| 36 | * ,------------------------------------------------------------------------. | 37 | * ,------------------------------------------------------------------------. |
| 37 | * | Exit | | | | | | | | | | | | | | | 38 | * | Exit | | | | | | | | | | | | | | |
| @@ -57,4 +58,5 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 57 | MI_MOD, MI_C, MI_D, MI_E, MI_F, MI_G, MI_A, MI_B, MI_C_1, MI_D_1, MI_E_1, MI_F_1, _______, \ | 58 | MI_MOD, MI_C, MI_D, MI_E, MI_F, MI_G, MI_A, MI_B, MI_C_1, MI_D_1, MI_E_1, MI_F_1, _______, \ |
| 58 | MI_SUS, MI_OCTD, MI_OCTU, MI_MODSD, MI_MODSU, XXXXXXX, XXXXXXX, XXXXXXX, MI_TRNSD, MI_TRNSU, MI_TRNS_0, MI_SUS, \ | 59 | MI_SUS, MI_OCTD, MI_OCTU, MI_MODSD, MI_MODSU, XXXXXXX, XXXXXXX, XXXXXXX, MI_TRNSD, MI_TRNSU, MI_TRNS_0, MI_SUS, \ |
| 59 | _______, _______, _______, MI_OFF, _______, _______, _______, _______), | 60 | _______, _______, _______, MI_OFF, _______, _______, _______, _______), |
| 61 | #endif | ||
| 60 | }; \ No newline at end of file | 62 | }; \ No newline at end of file |
diff --git a/quantum/process_keycode/process_midi.c b/quantum/process_keycode/process_midi.c index 9190fa047..5530ea97c 100644 --- a/quantum/process_keycode/process_midi.c +++ b/quantum/process_keycode/process_midi.c | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #define MIDI_TONE_KEYCODE_OCTAVES 2 | ||
| 2 | |||
| 1 | #include "process_midi.h" | 3 | #include "process_midi.h" |
| 2 | #include "timer.h" | 4 | #include "timer.h" |
| 3 | 5 | ||
diff --git a/quantum/template/config.h b/quantum/template/config.h index d0bee0d89..cd6dfa2c6 100644 --- a/quantum/template/config.h +++ b/quantum/template/config.h | |||
| @@ -159,7 +159,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 159 | //#define NO_ACTION_MACRO | 159 | //#define NO_ACTION_MACRO |
| 160 | //#define NO_ACTION_FUNCTION | 160 | //#define NO_ACTION_FUNCTION |
| 161 | 161 | ||
| 162 | /* override number of MIDI tone keycodes (each octave adds 12 bytes) */ | 162 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ |
| 163 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | 163 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 |
| 164 | 164 | ||
| 165 | #endif | 165 | #endif |
diff --git a/quantum/template/keymaps/default/Makefile b/quantum/template/keymaps/default/Makefile index f4671a9d1..24442db37 100644 --- a/quantum/template/keymaps/default/Makefile +++ b/quantum/template/keymaps/default/Makefile | |||
| @@ -9,7 +9,7 @@ CONSOLE_ENABLE = no # Console for debug(+400) | |||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | 9 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 12 | MIDI_ENABLE = no # MIDI controls | 12 | MIDI_ENABLE = no # MIDI support (+3800) |
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | 13 | AUDIO_ENABLE = no # Audio output on port C6 |
| 14 | UNICODE_ENABLE = no # Unicode | 14 | UNICODE_ENABLE = no # Unicode |
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
