config.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Copyright 2021 Mike Tsao
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. // config.h
  17. #pragma once
  18. #include "config_common.h"
  19. // USB Device descriptor parameter
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x8888
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER github.com/sowbug
  24. #define PRODUCT 68-key keyboard
  25. #define DESCRIPTION A 68-key keyboard based on 68keys.io
  26. // key matrix size
  27. #define MATRIX_ROWS 5
  28. #define MATRIX_COLS 16
  29. // key matrix pins
  30. #define MATRIX_ROW_PINS { C14, C15, A0, A1, A2 }
  31. #define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B10, B11, B12, B13, B14, B15, A8, A9, A10 }
  32. #define UNUSED_PINS
  33. // COL2ROW or ROW2COL
  34. #define DIODE_DIRECTION COL2ROW
  35. #define RGB_DI_PIN B9
  36. // Want backlighting and RGB Matrix patterns? See the note in the readme,
  37. // apply the patches, and then uncomment the line below as well as the ones
  38. // in rules.mk.
  39. //
  40. // #define BACKLIGHT_PIN rgb_matrix
  41. #define RGB_MATRIX_KEYPRESSES
  42. #define DRIVER_LED_TOTAL 68
  43. #define RGBLED_NUM DRIVER_LED_TOTAL
  44. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  45. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128