You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.5 KiB

  1. /*
  2. Copyright 2015 Jun Wako <wakojun@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. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0xCA04
  17. #define PRODUCT_ID 0x57F5
  18. #define DEVICE_VER 0x0001
  19. /* in python2: list(u"whatever".encode('utf-16-le')) */
  20. /* at most 32 characters or the ugly hack in usb_main.c borks */
  21. #define MANUFACTURER CannonKeys
  22. #define PRODUCT Satisfaction75
  23. #define DESCRIPTION Satisfaction 75 Keyboard
  24. /* key matrix size */
  25. #define MATRIX_ROWS 6
  26. #define MATRIX_COLS 16
  27. #define MATRIX_COL_PINS { B1, B2, B10, B11, B12, B13, B14, A8, A9, A10, B0, A7, A5, B5, A15, A1 }
  28. #define MATRIX_ROW_PINS { B3, B4, A0, A2, A4, A3 }
  29. #define DIODE_DIRECTION COL2ROW
  30. #define ENCODERS_PAD_A { B9 }
  31. #define ENCODERS_PAD_B { B8 }
  32. //LEDS A6, RGB B15
  33. #define BACKLIGHT_LEVELS 24
  34. #define BACKLIGHT_BREATHING
  35. #define BREATHING_PERIOD 6
  36. /* define if matrix has ghost */
  37. //#define MATRIX_HAS_GHOST
  38. /* Set 0 if debouncing isn't needed */
  39. #define DEBOUNCE 5
  40. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  41. #define LOCKING_SUPPORT_ENABLE
  42. /* Locking resynchronize hack */
  43. #define LOCKING_RESYNC_ENABLE
  44. #ifdef QWIIC_MICRO_OLED_ENABLE
  45. #undef I2C_ADDRESS_SA0_1
  46. #define I2C_ADDRESS_SA0_1 0b0111100
  47. #define LCDWIDTH 128
  48. #define LCDHEIGHT 32
  49. #endif
  50. // Custom config starts after VIA's EEPROM usage,
  51. // dynamic keymaps start after this.
  52. // Custom config Usage:
  53. // 1 for enabled encoder modes (1 byte)
  54. // 1 for custom backlighting controls (1 byte)
  55. // 1 for OLED default mode (1 byte)
  56. // 6 for 3x custom encoder settings, left, right, and press (18 bytes)
  57. #define VIA_EEPROM_CUSTOM_CONFIG_SIZE 21
  58. /*
  59. * Feature disable options
  60. * These options are also useful to firmware size reduction.
  61. */
  62. /* disable debug print */
  63. //#define NO_DEBUG
  64. /* disable print */
  65. //#define NO_PRINT
  66. /* disable action features */
  67. //#define NO_ACTION_LAYER
  68. //#define NO_ACTION_TAPPING
  69. //#define NO_ACTION_ONESHOT
  70. //#define NO_ACTION_MACRO
  71. //#define NO_ACTION_FUNCTION