logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (1266B)


  1. /*
  2. Copyright 2017 Zach White <skullydazed@clueboard.co>
  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. /* audio support */
  16. #define AUDIO_PIN_ALT B7
  17. #define AUDIO_PIN C4
  18. #define AUDIO_CLICKY
  19. /*
  20. * Drawing mode
  21. */
  22. #define DRAWING_ENABLE
  23. //#define UNDO_KEY LGUI(KC_Z) // What key to send for undo
  24. //#define UNDO_KEY LCTL(KC_Z)
  25. #define UNDO_KEY LGUI(KC_SLSH)
  26. /*
  27. * Shake to undo configuration
  28. */
  29. #define SHAKE_ENABLE
  30. #define SHAKE_PIN_A E4
  31. #define SHAKE_PIN_B E5
  32. #define SHAKE_TIMEOUT 500 // How long after shaking stops before we register it
  33. #define SHAKE_COUNT 8 // How many shakes it takes to activate
  34. #define SHAKE_KEY UNDO_KEY // What key to send after a shake