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.

57 lines
1.8 KiB

  1. /*
  2. * Copyright (c) 2021 Christiano Haesbaert <haesbaert@haesbaert.org>
  3. *
  4. * Permission to use, copy, modify, and distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0xFEED
  20. #define PRODUCT_ID 0x1805
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER haesbaert
  23. #define PRODUCT amigopunk
  24. /* Key matrix size */
  25. #define MATRIX_ROWS 6
  26. #define MATRIX_COLS 17
  27. /* Key matrix pins */
  28. #define MATRIX_ROW_PINS { C0, C1, C2, C3, C4, C5 }
  29. #define MATRIX_COL_PINS { B6, B5, B4, B3, B2, B1, B0, E7, E6, F0, F1, F2, F3, F4, F5, F6, F7 }
  30. #define UNUSED_PINS
  31. /* COL2ROW or ROW2COL */
  32. #define DIODE_DIRECTION COL2ROW
  33. /* Encoder setup */
  34. #ifdef ENCODER_ENABLE
  35. #define ENCODERS_PAD_A { E0 }
  36. #define ENCODERS_PAD_B { E1 }
  37. #endif
  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. /* disable these deprecated features by default */
  45. #define NO_ACTION_MACRO
  46. #define NO_ACTION_FUNCTION