config.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. #define DYNAMIC_KEYMAP_LAYER_COUNT 4
  51. // EEPROM usage
  52. // TODO: refactor with new user EEPROM code (coming soon)
  53. #define EEPROM_MAGIC 0x451F
  54. #define EEPROM_MAGIC_ADDR 32
  55. // Bump this every time we change what we store
  56. // This will automatically reset the EEPROM with defaults
  57. // and avoid loading invalid data from the EEPROM
  58. #define EEPROM_VERSION 0x01
  59. #define EEPROM_VERSION_ADDR 34
  60. // Dynamic keymap starts after EEPROM version
  61. #define DYNAMIC_KEYMAP_EEPROM_ADDR 35
  62. // Dynamic macro starts after dynamic keymaps (35+(4*6*16*2)) = (35+768) = 803
  63. // I'm also putting my custom stuff after that
  64. // 1 for enabled encoder modes
  65. // 1 for custom backlighting controls
  66. // 1 for OLED default mode
  67. // 6 for 3x custom encoder settings, left, right, and press (18 total)
  68. #define DYNAMIC_KEYMAP_ENABLED_ENCODER_MODES 803
  69. #define DYNAMIC_KEYMAP_CUSTOM_BACKLIGHT 804
  70. #define DYNAMIC_KEYMAP_DEFAULT_OLED 805
  71. #define DYNAMIC_KEYMAP_CUSTOM_ENCODER 806
  72. #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 824
  73. #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 200
  74. #define DYNAMIC_KEYMAP_MACRO_COUNT 16
  75. /*
  76. * Feature disable options
  77. * These options are also useful to firmware size reduction.
  78. */
  79. /* disable debug print */
  80. //#define NO_DEBUG
  81. /* disable print */
  82. //#define NO_PRINT
  83. /* disable action features */
  84. //#define NO_ACTION_LAYER
  85. //#define NO_ACTION_TAPPING
  86. //#define NO_ACTION_ONESHOT
  87. //#define NO_ACTION_MACRO
  88. //#define NO_ACTION_FUNCTION