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.

39 lines
1.1 KiB

  1. /* Copyright 2020-2022 Lorenzo Leonini
  2. * SPDX-License-Identifier: GPL-2.0-only
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  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. #include "config_common.h"
  18. /* Microchip ADM42 sublicensing */
  19. #define VENDOR_ID 0x04D8
  20. #define PRODUCT_ID 0xE873
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Lorenzo Leonini
  23. #define PRODUCT ADM42
  24. #define MATRIX_ROWS 4
  25. #define MATRIX_COLS 12
  26. #define DIODE_DIRECTION ROW2COL
  27. #define TAP_CODE_DELAY 1
  28. #define DEBOUNCE 10
  29. #if defined(CONSOLE_ENABLE)
  30. #define DEBUG_MATRIX_SCAN_RATE
  31. #endif