config.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. Copyright 2020 Jack Humbert
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #ifdef AUDIO_ENABLE
  16. #define AUDIO_PIN A5
  17. #define STARTUP_SONG SONG(PLANCK_SOUND)
  18. // #define STARTUP_SONG SONG(NO_SOUND)
  19. #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
  20. SONG(COLEMAK_SOUND), \
  21. SONG(DVORAK_SOUND) \
  22. }
  23. #endif
  24. /*
  25. * MIDI options
  26. */
  27. /* Prevent use of disabled MIDI features in the keymap */
  28. //#define MIDI_ENABLE_STRICT 1
  29. /* enable basic MIDI features:
  30. - MIDI notes can be sent when in Music mode is on
  31. */
  32. #define MIDI_BASIC
  33. /* enable advanced MIDI features:
  34. - MIDI notes can be added to the keymap
  35. - Octave shift and transpose
  36. - Virtual sustain, portamento, and modulation wheel
  37. - etc.
  38. */
  39. //#define MIDI_ADVANCED
  40. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  41. //#define MIDI_TONE_KEYCODE_OCTAVES 2
  42. // Most tactile encoders have detents every 4 stages
  43. #define ENCODER_RESOLUTION 4