config.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 QMK
  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 NUMBER_OF_ENCODERS 1
  31. #define ENCODERS_PAD_A { B9 }
  32. #define ENCODERS_PAD_B { B8 }
  33. //LEDS A6, RGB B15
  34. #define BACKLIGHT_LEVELS 24
  35. #define BACKLIGHT_BREATHING
  36. #define BREATHING_PERIOD 6
  37. /* define if matrix has ghost */
  38. //#define MATRIX_HAS_GHOST
  39. /* Set 0 if debouncing isn't needed */
  40. #define DEBOUNCE 5
  41. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  42. #define LOCKING_SUPPORT_ENABLE
  43. /* Locking resynchronize hack */
  44. #define LOCKING_RESYNC_ENABLE
  45. #ifdef QWIIC_MICRO_OLED_ENABLE
  46. #undef I2C_ADDRESS_SA0_1
  47. #define I2C_ADDRESS_SA0_1 0b0111100
  48. #define LCDWIDTH 128
  49. #define LCDHEIGHT 32
  50. #endif
  51. #define DYNAMIC_KEYMAP_LAYER_COUNT 4
  52. // EEPROM usage
  53. // TODO: refactor with new user EEPROM code (coming soon)
  54. #define EEPROM_MAGIC 0x451F
  55. #define EEPROM_MAGIC_ADDR 32
  56. // Bump this every time we change what we store
  57. // This will automatically reset the EEPROM with defaults
  58. // and avoid loading invalid data from the EEPROM
  59. #define EEPROM_VERSION 0x02
  60. #define EEPROM_VERSION_ADDR 34
  61. // Dynamic keymap starts after EEPROM version
  62. #define DYNAMIC_KEYMAP_EEPROM_ADDR 35
  63. // Dynamic macro starts after dynamic keymaps (35+(4*6*16*2)) = (35+768)
  64. #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 803
  65. #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 221
  66. #define DYNAMIC_KEYMAP_MACRO_COUNT 16
  67. /*
  68. * Feature disable options
  69. * These options are also useful to firmware size reduction.
  70. */
  71. /* disable debug print */
  72. //#define NO_DEBUG
  73. /* disable print */
  74. //#define NO_PRINT
  75. /* disable action features */
  76. //#define NO_ACTION_LAYER
  77. //#define NO_ACTION_TAPPING
  78. //#define NO_ACTION_ONESHOT
  79. //#define NO_ACTION_MACRO
  80. //#define NO_ACTION_FUNCTION