config.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*Copyright 2022 Ocean
  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. /*
  15. * Keyboard Matrix Assignments
  16. *
  17. * Change this to how you wired your keyboard
  18. * COLS: AVR pins used for columns, left to right
  19. * ROWS: AVR pins used for rows, top to bottom
  20. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  21. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  22. *
  23. */
  24. /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14*/
  25. #define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
  26. #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5 }
  27. /* COL2ROW, ROW2COL*/
  28. #define DIODE_DIRECTION ROW2COL