config.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
  2. * Copyright 2020 Jack Humbert <jack.humb@gmail.com>
  3. * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  4. *
  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. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. #define WEBUSB_LANDING_PAGE_URL u8"configure.ergodox-ez.com"
  20. /* key matrix size */
  21. #define MATRIX_ROWS 12
  22. #define MATRIX_COLS 7
  23. /* PCB default pin-out */
  24. // #define MATRIX_ROW_PINS { B10, B11, B12, B13, B14, B15 }
  25. // #define MATRIX_COL_PINS { A0, A1, A2, A3, A6, A7, B0 }
  26. // #define MCP23_ROW_PINS { GPB5, GBP4, GBP3, GBP2, GBP1, GBP0 }
  27. // #define MCP23_COL_PINS { GPA0, GBA1, GBA2, GBA3, GBA4, GBA5, GBA6 }
  28. // #define MCP23_LED_R GPB7
  29. // #define MCP23_LED_G GPB6
  30. // #define MCP23_LED_B GPA7
  31. #define EEPROM_I2C_24LC128
  32. // Not needed, is default address:
  33. // #define EXTERNAL_EEPROM_I2C_BASE_ADDRESS 0b10100000
  34. /* COL2ROW or ROW2COL */
  35. #define DIODE_DIRECTION ROW2COL
  36. /*
  37. * Feature disable options
  38. * These options are also useful to firmware size reduction.
  39. */
  40. /* disable debug print */
  41. //#define NO_DEBUG
  42. /* disable print */
  43. //#define NO_PRINT
  44. /* disable action features */
  45. //#define NO_ACTION_LAYER
  46. //#define NO_ACTION_TAPPING
  47. //#define NO_ACTION_ONESHOT
  48. #define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
  49. #define IS31FL3731_I2C_ADDRESS_2 IS31FL3731_I2C_ADDRESS_VCC
  50. #define MOUSEKEY_INTERVAL 20
  51. #define MOUSEKEY_DELAY 0
  52. #define MOUSEKEY_TIME_TO_MAX 60
  53. #define MOUSEKEY_MAX_SPEED 7
  54. #define MOUSEKEY_WHEEL_DELAY 400
  55. #define MOUSEKEY_WHEEL_INTERVAL MOUSEKEY_INTERVAL
  56. #define MOUSEKEY_WHEEL_MAX_SPEED MOUSEKEY_MAX_SPEED
  57. #define MOUSEKEY_WHEEL_TIME_TO_MAX MOUSEKEY_TIME_TO_MAX
  58. #define MUSIC_MAP
  59. #define FIRMWARE_VERSION_SIZE 17
  60. #define DYNAMIC_KEYMAP_EEPROM_ADDR (EECONFIG_SIZE + FIRMWARE_VERSION_SIZE)
  61. #define AUDIO_PIN A5
  62. #define AUDIO_PIN_ALT A4
  63. #define AUDIO_PIN_ALT_AS_NEGATIVE