config.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. QMK Firmware for dekuNukem/duckyPad
  3. Copyright (C) 2020 Max Bridgland <@M4cs>
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #pragma once
  16. #include "config_common.h"
  17. #define VENDOR_ID 0x444E // "DN"
  18. #define PRODUCT_ID 0x4450 // "DP"
  19. #define DEVICE_VER 0x0001 // 1.0
  20. #define MANUFACTURER dekuNukem
  21. #define PRODUCT duckyPad
  22. #define MATRIX_ROWS 1
  23. #define MATRIX_COLS 17
  24. #define DIRECT_PINS {{ B13, B14, B15, A8, A15, B3, B4, B5, B6, B7, C13, C14, C15, F0, F1, A1, A2 }}
  25. #define RGB_DI_PIN A10
  26. #define RGBLED_NUM 15
  27. #define DRIVER_LED_TOTAL 15
  28. #ifdef RGB_MATRIX_ENABLE
  29. #define RGB_MATRIX_KEYPRESSES
  30. #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  31. #define RGB_MATRIX_STARTUP_HUE 221
  32. #endif
  33. #define I2C1_SCL 8
  34. #define I2C1_SDA 9
  35. #define I2C1_SCL_PAL_MODE 1
  36. #define I2C1_SDA_PAL_MODE 1
  37. #define OLED_DISPLAY_ADDRESS 0x3C
  38. #define OLED_DISPLAY_128X64
  39. #define OLED_COM_PINS 0x12
  40. #define OLED_IC OLED_IC_SH1106
  41. #define OLED_COLUMN_OFFSET 2