config.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #include "config_common.h"
  16. /*
  17. * Encoder Assignments
  18. */
  19. #define ENCODERS_PAD_A { A5, A4, A2, A1 }
  20. #define ENCODERS_PAD_B { A6, A7, A3, A0 }
  21. #define ENCODER_RESOLUTION 4
  22. /* audio support */
  23. #define AUDIO_PIN_ALT B7
  24. #define AUDIO_PIN C4
  25. #define AUDIO_CLICKY
  26. /*
  27. * Drawing mode
  28. */
  29. #define DRAWING_ENABLE
  30. //#define UNDO_KEY LGUI(KC_Z) // What key to send for undo
  31. //#define UNDO_KEY LCTL(KC_Z)
  32. #define UNDO_KEY LGUI(KC_SLSH)
  33. /*
  34. * Shake to undo configuration
  35. */
  36. #define SHAKE_ENABLE
  37. #define SHAKE_PIN_A E4
  38. #define SHAKE_PIN_B E5
  39. #define SHAKE_TIMEOUT 500 // How long after shaking stops before we register it
  40. #define SHAKE_COUNT 8 // How many shakes it takes to activate
  41. #define SHAKE_KEY UNDO_KEY // What key to send after a shake