config.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright 2020-2021 PercyJW-2 <joris.wachsmuth@gmail.com>
  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. // Audio
  18. #define AUDIO_PIN A5
  19. #define AUDIO_PIN_ALT A4
  20. #define AUDIO_PIN_ALT_AS_NEGATIVE
  21. #define MATRIX_COL_PINS {A2, A1, A0, B8, B13, B14, B15, B9}
  22. #define MATRIX_ROW_PINS {B5, B4, B3, B2, B1}
  23. // COL2ROW, ROW2COL
  24. #define DIODE_DIRECTION COL2ROW
  25. #define MATRIX_IO_DELAY 5
  26. #define SELECT_SOFT_SERIAL_SPEED 1
  27. #define SERIAL_USART_DRIVER SD1
  28. #define SERIAL_USART_TX_PAL_MODE 7
  29. #define SERIAL_USART_TIMEOUT 100
  30. // Feature diable options
  31. //#define NO_DEBUG
  32. //#define NO_PRINT
  33. #define OLED_DISPLAY_128X64