config.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Copyright 2018 Evy Dekkers
  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. #ifndef CONFIG_H
  17. #define CONFIG_H
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x6050
  22. #define DEVICE_VER 0x0104
  23. #define MANUFACTURER Revo
  24. #define PRODUCT KMAC Kmini
  25. /* key matrix size */
  26. #define MATRIX_ROWS 5
  27. #define MATRIX_COLS 17
  28. /*
  29. * Keyboard Matrix Assignments
  30. * The KMAC uses a demultiplexer for some of the cols.
  31. * See matrix.c for more details.
  32. */
  33. #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
  34. #define MATRIX_COL_PINS { }
  35. #define UNUSED_PINS
  36. /* COL2ROW, ROW2COL*/
  37. //#define DIODE_DIRECTION
  38. /* number of backlight levels */
  39. //#define BACKLIGHT_LEVELS 3
  40. // #define BACKLIGHT_PIN B7
  41. // #define BACKLIGHT_BREATHING
  42. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  43. #define DEBOUNCE 5
  44. #endif