mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-24 09:27:36 +06:00
a64ae10662
Update existing keymaps to enable MIDI_BASIC functionality. Also added an option MIDI_ENABLE_STRICT to be strict about keycode use (which also reduces memory footprint at runtime)
41 lines
869 B
C
41 lines
869 B
C
#ifndef CONFIG_USER_H
|
|
#define CONFIG_USER_H
|
|
|
|
#include "../../config.h"
|
|
|
|
#define LEADER_TIMEOUT 300
|
|
#define BACKLIGHT_BREATHING
|
|
|
|
|
|
/* ws2812 RGB LED */
|
|
#define RGB_DI_PIN B1
|
|
#define RGBLIGHT_ANIMATIONS
|
|
#define RGBLED_NUM 8 // Number of LEDs
|
|
#define RGBLIGHT_HUE_STEP 10
|
|
#define RGBLIGHT_SAT_STEP 17
|
|
|
|
/*
|
|
* MIDI options
|
|
*/
|
|
|
|
/* Prevent use of disabled MIDI features in the keymap */
|
|
//#define MIDI_ENABLE_STRICT 1
|
|
|
|
/* enable basic MIDI features:
|
|
- MIDI notes can be sent when in Music mode is on
|
|
*/
|
|
#define MIDI_BASIC
|
|
|
|
/* enable advanced MIDI features:
|
|
- MIDI notes can be added to the keymap
|
|
- Octave shift and transpose
|
|
- Virtual sustain, portamento, and modulation wheel
|
|
- etc.
|
|
*/
|
|
//#define MIDI_ADVANCED
|
|
|
|
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
|
|
//#define MIDI_TONE_KEYCODE_OCTAVES 2
|
|
|
|
#endif
|