config.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Copyright 2022 Era James(@Era1112)
  2. // SPDX - License - Identifier: GPL - 2.0 - or -later
  3. #pragma once
  4. //----------- Default statements -----------//
  5. //------------------------------------------//
  6. #define MUSIC_MASK (keycode < 0xFF)
  7. /*
  8. * MIDI options
  9. */
  10. /* enable basic MIDI features:
  11. - MIDI notes can be sent when in Music mode is on
  12. */
  13. #define MIDI_BASIC
  14. /* enable advanced MIDI features:
  15. - MIDI notes can be added to the keymap
  16. - Octave shift and transpose
  17. - Virtual sustain, portamento, and modulation wheel
  18. - etc.
  19. */
  20. #define MIDI_ADVANCED
  21. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  22. //#define MIDI_TONE_KEYCODE_OCTAVES 2
  23. //----------- Added statements -------------//
  24. //------------------------------------------//
  25. #define TAPPING_TERM 200 // For tapdances
  26. // Commented to see if it helps stalls on clicky mode #define DYNAMIC_MACRO_NO_NESTING // Improve dynamic macro stability
  27. #ifdef AUDIO_ENABLE
  28. #define AUDIO_INIT_DELAY // to make startup audio work
  29. #define STARTUP_SONG SONG(PREONIC_SOUND)
  30. #define AUDIO_CLICKY // enable clicky mode
  31. // Clicky mode parameters
  32. #define AUDIO_CLICKY_FREQ_MIN 65.0f // Default 65
  33. #define AUDIO_CLICKY_FREQ_DEFAULT 800.0f // Default 440
  34. #define AUDIO_CLICKY_FREQ_MAX 1500.0f // Defaul 1500
  35. #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.0f // Default 0.05
  36. #define AUDIO_CLICKY_DELAY_DURATION 0.1f // Default 1
  37. #endif //AUDIO_ENABLE
  38. #define RGBLIGHT_SLEEP // RGB lights turn off when host sleeps
  39. // Firmware minimization
  40. // Commented to see if it helps stalls on clicky mode
  41. // #define NO_ACTION_ONESHOT
  42. // #undef LOCKING_SUPPORT_ENABLE
  43. // #undef LOCKING_RESYNC_ENABLE
  44. // #define NO_MUSIC_MODE
  45. // #define LAYER_STATE_8BIT // Limits keymap to 8 layers