logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (2613B)


  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. #define MOUSEKEY_INTERVAL 20
  16. #define MOUSEKEY_DELAY 0
  17. #define MOUSEKEY_TIME_TO_MAX 60
  18. #define MOUSEKEY_MAX_SPEED 7
  19. #define MOUSEKEY_WHEEL_DELAY 0
  20. /* key combination for command */
  21. #define IS_COMMAND() ( \
  22. get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  23. get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  24. )
  25. /* Serial config (for communication between halves) */
  26. #define SERIAL_USART_DRIVER SD1 // Only true for the master half
  27. #define SERIAL_USART_CONFIG { (SERIAL_USART_SPEED), } // Only field is speed
  28. #define SERIAL_USART_FULL_DUPLEX
  29. #define LED_BRIGHTNESS_LO 100
  30. #define LED_BRIGHTNESS_HI 255
  31. /* LED matrix driver */
  32. #define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
  33. #define IS31FL3731_SDB_PIN B16
  34. /* i2c (for LED matrix) */
  35. #define I2C1_CLOCK_SPEED 400000
  36. #define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2
  37. #define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2
  38. #define I2C1_SCL_PIN B0
  39. #define I2C1_SDA_PIN B1
  40. #ifdef ST7565_ENABLE
  41. /* LCD driver */
  42. # define ST7565_A0_PIN C7
  43. # define ST7565_RST_PIN C8
  44. # define ST7565_SS_PIN C4
  45. # define ST7565_SPI_CLK_DIVISOR 2
  46. # define ST7565_CONTRAST 22
  47. # define ST7565_DISPLAY_WIDTH 128
  48. # define ST7565_DISPLAY_HEIGHT 32
  49. /* SPI (for LCD) */
  50. # define SPI_DRIVER SPID1
  51. # define SPI_SCK_PIN C5
  52. # define SPI_SCK_PAL_MODE PAL_MODE_ALTERNATIVE_2
  53. # define SPI_MOSI_PIN C6
  54. # define SPI_MOSI_PAL_MODE PAL_MODE_ALTERNATIVE_2
  55. # define SPI_MISO_PIN A4 // Just an unused pin, the "normal" MISO pin (C7) is used for other things
  56. # define SPI_MISO_PAL_MODE PAL_MODE_ALTERNATIVE_7 // Default for A4
  57. #endif
  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