config.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. Copyright 2020 farfalleflickan <farfalleflickan@gmail.com>
  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. #define VENDOR_ID 0xDA12
  17. #define PRODUCT_ID 0x6060
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER farfalleflickan
  20. #define PRODUCT nack keyboard
  21. #define MATRIX_ROWS 4
  22. #define MATRIX_COLS 13
  23. #define MATRIX_ROW_PINS { A0, A1, A2, A3 }
  24. #define MATRIX_COL_PINS { A6, A7, A8, A9, A10, B0, B1, B2, B6, B7, C13, C14, C15 }
  25. #define DIODE_DIRECTION ROW2COL
  26. #define DEBOUNCE 5
  27. #define TAPPING_TOGGLE 2
  28. #ifdef RGB_MATRIX_ENABLE
  29. #define WS2812_SPI SPID1
  30. #define WS2812_SPI_MOSI_PAL_MODE 5
  31. #define RGB_DI_PIN B5
  32. #define RGBLED_NUM 52
  33. #define DRIVER_LED_TOTAL RGBLED_NUM
  34. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 // Max brightness of LEDs
  35. #define RGB_MATRIX_STARTUP_VAL 64
  36. #define RGB_MATRIX_HUE_STEP 10
  37. #define RGB_MATRIX_SAT_STEP 10
  38. #define RGB_MATRIX_VAL_STEP 10
  39. #endif
  40. #ifdef AUDIO_ENABLE
  41. #define AUDIO_PIN A5
  42. #define AUDIO_PIN_ALT A4
  43. #define STARTUP_SONG SONG(NO_SOUND)
  44. #define AUDIO_DAC_SAMPLE_MAX 4095U
  45. #endif