2
0

config.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 Jack Humbert
  4. Copyright 2017 Biacco42
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  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 REV1_CONFIG_H
  17. #define REV1_CONFIG_H
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xBC42
  21. #define PRODUCT_ID 0x0042
  22. #define DEVICE_VER 0x0100
  23. #define MANUFACTURER Biacco42
  24. #define PRODUCT Ergo42
  25. #define DESCRIPTION The Answer to the Ultimate Question of Life, the Universe, and at least Keyboards
  26. /* key matrix size */
  27. // Rows are doubled-up
  28. #define MATRIX_ROWS 8
  29. #define MATRIX_COLS 7
  30. // wiring of each half
  31. #define MATRIX_ROW_PINS { D7, E6, B4, B5 }
  32. #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 }
  33. // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6 } //uncomment this line and comment line above if you need to reverse left-to-right key order
  34. #define CATERINA_BOOTLOADER
  35. /* define tapping term */
  36. #define TAPPING_TERM 100
  37. /* define if matrix has ghost */
  38. //#define MATRIX_HAS_GHOST
  39. /* number of backlight levels */
  40. // #define BACKLIGHT_LEVELS 3
  41. /* Set 0 if debouncing isn't needed */
  42. #define DEBOUNCING_DELAY 5
  43. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  44. #define LOCKING_SUPPORT_ENABLE
  45. /* Locking resynchronize hack */
  46. #define LOCKING_RESYNC_ENABLE
  47. /* key combination for command */
  48. #define IS_COMMAND() ( \
  49. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  50. )
  51. /* ws2812 RGB LED */
  52. #define RGB_DI_PIN D3
  53. #define RGBLED_NUM 12 // Number of LEDs
  54. /*
  55. * Feature disable options
  56. * These options are also useful to firmware size reduction.
  57. */
  58. /* disable debug print */
  59. // #define NO_DEBUG
  60. /* disable print */
  61. // #define NO_PRINT
  62. /* disable action features */
  63. //#define NO_ACTION_LAYER
  64. //#define NO_ACTION_TAPPING
  65. //#define NO_ACTION_ONESHOT
  66. //#define NO_ACTION_MACRO
  67. //#define NO_ACTION_FUNCTION
  68. #endif