config.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. Copyright 2020 haierwangwei2005
  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. #pragma once
  14. #include "config_common.h"
  15. /* key matrix size */
  16. #define MATRIX_ROWS 4
  17. #define MATRIX_COLS 3
  18. #define MATRIX_ROW_PINS { F0, F5, F4, F6 }
  19. #define MATRIX_COL_PINS { D6, D7, B5 }
  20. #define DIODE_DIRECTION ROW2COL
  21. #define SSD1306OLED
  22. #define RGB_DI_PIN B7
  23. #define RGBLED_NUM 4
  24. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  25. #define DEBOUNCE 5
  26. #define RGBLIGHT_EFFECT_BREATHING
  27. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  28. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  29. #define RGBLIGHT_EFFECT_SNAKE
  30. #define RGBLIGHT_EFFECT_KNIGHT
  31. #define RGBLIGHT_EFFECT_CHRISTMAS
  32. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  33. #define RGBLIGHT_EFFECT_RGB_TEST
  34. #define RGBLIGHT_EFFECT_ALTERNATING
  35. #define RGBLIGHT_EFFECT_TWINKLE
  36. #define OLED_FONT_H "./lib/glcdfont.c"
  37. #define ENCODERS_PAD_A { C7 }
  38. #define ENCODERS_PAD_B { F7 }
  39. #define ENCODER_RESOLUTION 4