config.h 544 B

1234567891011121314151617181920212223242526
  1. /* Copyright 2020 David Philip Barr <@davidphilipbarr>
  2. * Copyright 2021 @filterpaper
  3. * SPDX-License-Identifier: GPL-2.0+
  4. */
  5. #pragma once
  6. #include "config_common.h"
  7. /* key matrix size */
  8. #define MATRIX_ROWS 2
  9. #define MATRIX_COLS 4
  10. /* key matrix pins */
  11. #define DIRECT_PINS { \
  12. { D7, C6, D4, D1 }, \
  13. { B1, B4, B5, B3 } \
  14. }
  15. #define ENCODERS_PAD_A { D2, F7 }
  16. #define ENCODERS_PAD_B { D3, F6 }
  17. #define UNUSED_PINS
  18. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  19. #define DEBOUNCE 5