Peter's keyboard firmware (QMK) https://qmk.fm/
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.

config.h 840B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef REV2_CONFIG_H
  2. #define REV2_CONFIG_H
  3. #include "config_common.h"
  4. #define PRODUCT_ID 0x2301
  5. #define DEVICE_VER 0x0003
  6. /* key matrix size */
  7. #define MATRIX_ROWS 5
  8. #define MATRIX_COLS 16
  9. // ROWS: Top to bottom, COLS: Left to right
  10. /* Column pin configuration
  11. * col: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
  12. * pin: B3 F1 F4 F5 F6 C7 C6 B6 B5 B4 D7 D6 D4 F7 B0 B1
  13. */
  14. #define MATRIX_COL_PINS { B3, F1, F4, F5, F6, C7, C6, B6, B5, B4, D7, D6, D4, F7, B0, B1 }
  15. /* Row pin configuration
  16. * row: 0 1 2 3 4
  17. * pin: D1 D0 D2 D5 D3
  18. */
  19. #define MATRIX_ROW_PINS { D1, D0, D2, D5, D3 }
  20. #define UNUSED_PINS
  21. /* Underlight configuration
  22. */
  23. #define RGB_DI_PIN B2
  24. #define RGBLIGHT_ANIMATIONS
  25. #define RGBLED_NUM 14 // Number of LEDs
  26. #define RGBLIGHT_HUE_STEP 10
  27. #define RGBLIGHT_SAT_STEP 17
  28. #define RGBLIGHT_VAL_STEP 17
  29. #endif