You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.9 KiB

  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. /* audio support */
  17. #define AUDIO_PIN_ALT B7
  18. #define AUDIO_PIN C4
  19. #define AUDIO_CLICKY
  20. /*
  21. * Encoder Assignments
  22. */
  23. #define ENCODERS_PAD_A { D0, C5 }
  24. #define ENCODERS_PAD_B { D1, C6 }
  25. #define ENCODER_RESOLUTION 4
  26. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  27. #define LOCKING_SUPPORT_ENABLE
  28. /* Locking resynchronize hack */
  29. #define LOCKING_RESYNC_ENABLE
  30. // Configure our MAX7219's
  31. //#define MAX7219_LOAD B0
  32. //#define MAX7219_CONTROLLERS 4
  33. //#define MAX7219_LED_INTENSITY 1 // Max: 15
  34. // Define this to disable the startup test
  35. //#define MAX7219_NO_STARTUP_TEST
  36. /* This controls the speed of the sign, lower is faster. This is the minimal
  37. * time between animation frames, in ms. Actual time between frames will
  38. * always be slightly longer due to other keyboard tasks.
  39. */
  40. //#define MAX7219_SCROLL_TIME 100
  41. /* This setting controls how big the scrollable area for your message sign
  42. * is. If you set it to 0 your display will not work. If you set it to 1
  43. * you will have no buffer area, and you will only be able to display a
  44. * total of 6 characters. Every number after that increases the buffer area
  45. * by 32 columns.
  46. *
  47. * You can calculate how big to make this for the number of characters you
  48. * want to display:
  49. *
  50. * <number of characters in message> * 6 / 32 + 1
  51. *
  52. * You do not need to tune this unless you are trying to save ram.
  53. */
  54. //#define MAX7219_BUFFER_MULTIPLIER 24
  55. // You can only define one of these at a time:
  56. // Define this to test all LEDs. Keyboard functions will not work.
  57. //#define MAX7219_LED_TEST
  58. // Define this to iterate through LEDs 1 by 1. Keyboard functions will not work.
  59. //#define MAX7219_LED_ITERATE
  60. // Define this to show a simple animation. Keyboard functions will not work.
  61. //#define MAX7219_LED_DANCE
  62. // Define this to show all the characters available
  63. //#define MAX7219_LED_FONTTEST
  64. // Define this to show Clueboard on the sign
  65. //#define MAX7219_LED_CLUEBOARD
  66. // Define this to show the Konami code on the sign
  67. //#define MAX7219_LED_KONAMI
  68. // Define this to show QMK on the sign
  69. //#define MAX7219_LED_QMK_POWERED
  70. // Define this to treat the message board like an etch-a-sketch
  71. //#define DRAWING_TOY_MODE
  72. // Define this if you don't want any of the above
  73. //#define MAX7219_LED_CUSTOM