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.

55 lines
1.9 KiB

Add a lot more data to info.json (#13366) * add some split data to info.json * add tags * add half of config_options.md to info.json * add support for designating master split * sort out split transport and primary * fix bad data in UNUSED_PINS * fixup custom transport * wip * allow for setting split right half keyboard matrix * add SPLIT_USB_DETECT * minor cleanup * fix an erroneous message * rework split.usb_detect * adding missing rgblight vars to info.json * add mouse_key to info.json * add all remaining options from docs/config_options.md * fix audio voices * qmk info: Change text output to use dotted notation * tweak layout output * resolve alias names * break out some functions to make flake8 happy * add a field for bootloader instructions * qmk generate-info-json: add a write-to-file argument Adds an argument that instructs qmk generate-info-json to write the output to a file instead of just to the terminal. * -arg_only, +action Because it was never my intention that one would have to specify a value for the argument that enables writing the file. * Bring qmk generate-info-json inline with other generate commands * pytest fixup * fix esca/getawayvan * fix data driven errors for bpiphany converters * features.force_nkro -> usb.force_nkro * split.primary->split.main * fix esca/getawayvan_f042 * fix the bpiphany converters for real * fix bpiphany/tiger_lily * Apply suggestions from code review Co-authored-by: Nick Brassel <nick@tzarc.org> * fix generate-api errors * fix matrix pin extraction for split boards * fix ploopyco/trackball_nano/rev1_001 Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
2 years ago
  1. /* Copyright 2021 cest73
  2. *
  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. *
  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. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0xBADD
  20. #define PRODUCT_ID 0xAA55
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER cest73
  23. #define PRODUCT TKM-2021 R1.03
  24. /* key matrix size */
  25. #define MATRIX_ROWS 11
  26. #define MATRIX_COLS 10
  27. /* matrix sz handy ruler: 1 2 3 4 5 6 7 8 9 10 11 12 */
  28. /* key matrix pins */
  29. /* row handy ruler: r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 */
  30. #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6, B7, C6, C7, D0 }
  31. /* column handy ruler: c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 */
  32. #define MATRIX_COL_PINS { D1, D2, D3, D4, D5, D6, D7, F0, F1, F4 }
  33. #define UNUSED_PINS { }
  34. //NOTE: if D6 pin shows any issues in exploatation the LED on the Teensy is to be removed
  35. #define LED_NUM_LOCK_PIN F6
  36. #define LED_CAPS_LOCK_PIN F5
  37. #define LED_SCROLL_LOCK_PIN F7
  38. #define LED_PIN_ON_STATE 0
  39. //TODO change the E6 pin to either B5, B6, B7 or C6 to utilize hardware PWM on a future PCB revision
  40. #define BACKLIGHT_PIN E6
  41. /* COL2ROW or ROW2COL */
  42. #define DIODE_DIRECTION COL2ROW
  43. /* Set 0 if debouncing isn't needed */
  44. #define DEBOUNCE 5
  45. /* force n-key rollover*/
  46. #define FORCE_NKRO