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.

61 lines
1.8 KiB

  1. // Copyright 2022 Arturo Avila (@ADPenrose)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. /* Key matrix size */
  5. #define MATRIX_ROWS 6
  6. #define MATRIX_COLS 5
  7. /*
  8. * Keyboard Matrix Assignments
  9. *
  10. * Change this to how you wired your keyboard
  11. * COLS: AVR pins used for columns, left to right
  12. * ROWS: AVR pins used for rows, top to bottom
  13. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  14. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  15. *
  16. */
  17. #define MATRIX_ROW_PINS { D4, D7, E6, B6, B4, B5 }
  18. #define MATRIX_COL_PINS { D3, D2, F5, F6, B2 }
  19. /* COL2ROW, ROW2COL */
  20. #define DIODE_DIRECTION COL2ROW
  21. /*Rotary encoder - set the resolution fitting your encoder.
  22. Most will need a value of 4. If 1 encoder click results in 2 keycodes sent
  23. increase the value. If you need 2 clicks for 1 keycode, decrease*/
  24. #define ENCODER_RESOLUTION 4
  25. #define ENCODERS_PAD_A { B1 }
  26. #define ENCODERS_PAD_B { B3 }
  27. #define TAP_CODE_DELAY 10
  28. /* Audio functionality */
  29. #define AUDIO_PIN C6
  30. #define AUDIO_CLICKY
  31. #define AUDIO_ENABLE_TONE_MULTIPLEXING
  32. #define AUDIO_TONE_MULTIPLEXING_RATE_DEFAULT 10
  33. // The pin connected to the data pin of the LEDs
  34. #define RGB_DI_PIN F4
  35. // The number of LEDs connected
  36. #define RGB_MATRIX_LED_COUNT 27
  37. #define RGB_MATRIX_CENTER { 60, 77 }
  38. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 175
  39. #define RGB_DISABLE_WHEN_USB_SUSPENDED
  40. #ifdef RGB_MATRIX_ENABLE
  41. // RGB Matrix Animation modes. Explicitly enabled
  42. // For full list of effects, see:
  43. // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
  44. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  45. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  46. #endif
  47. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  48. #define DEBOUNCE 5
  49. /* Bootmagic Lite key configuration */
  50. #define BOOTMAGIC_LITE_ROW 0
  51. #define BOOTMAGIC_LITE_COLUMN 0