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.

67 lines
1.9 KiB

  1. /* Copyright 2021 Obosob <obosob@riseup.net>
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #pragma once
  14. #include "config_common.h"
  15. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0xC2AB
  17. #define PRODUCT_ID 0x50AD
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER Obosob
  20. #define PRODUCT Steal This Keyboard!
  21. /* key matrix size */
  22. #define MATRIX_ROWS 8
  23. #define MATRIX_COLS 5
  24. /*
  25. * Keyboard Matrix Assignments
  26. *
  27. * Change this to how you wired your keyboard
  28. * COLS: AVR pins used for columns, left to right
  29. * ROWS: AVR pins used for rows, top to bottom
  30. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  31. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  32. * NO_DIODE = switches are directly connected to AVR pins
  33. *
  34. */
  35. #define DIRECT_PINS { \
  36. { F4, F7, B2, D1, D7 }, \
  37. { F5, B1, B6, D0, E6 }, \
  38. { F6, B3, D3, D4, B4 }, \
  39. { C6, B5, NO_PIN, NO_PIN, NO_PIN } \
  40. }
  41. #define DIRECT_PINS_RIGHT { \
  42. { D7, D1, B2, F7, F4}, \
  43. { E6, D0, B6, B1, F5 }, \
  44. { B4, D4, D3, B3, F6 }, \
  45. { B5, C6, NO_PIN, NO_PIN, NO_PIN } \
  46. }
  47. #define UNUSED_PINS
  48. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  49. #define DEBOUNCE 5
  50. /* Serial settings */
  51. #define USE_SERIAL
  52. /* serial.c configuration for split keyboard */
  53. #define SOFT_SERIAL_PIN D2
  54. #define EE_HANDS