config.h 789 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #ifdef PRODUCT
  3. # undef PRODUCT
  4. # define PRODUCT Iris Keyboard - pvinis
  5. #endif
  6. // Use I2C or Serial, not both.
  7. #define USE_SERIAL
  8. // #define USE_I2C
  9. // Select hand configuration.
  10. // #define MASTER_LEFT
  11. #define MASTER_RIGHT
  12. // #define EE_HANDS
  13. // Choose pin to use for audio. C6 is the one iris uses.
  14. #ifdef AUDIO_ENABLE
  15. # define AUDIO_PIN C6
  16. # define STARTUP_SONG SONG(NO_SOUND) // No startup song.
  17. #endif
  18. #ifdef RGBLIGHT_ENABLE
  19. # undef RGBLED_NUM
  20. # define RGBLED_NUM 16
  21. #endif
  22. #ifdef ENCODER_ENABLE
  23. # define ENCODERS_PAD_A \
  24. { F5 } // I connected the encoder to F4 and F5.
  25. # define ENCODERS_PAD_B \
  26. { F4 }
  27. // #define ENCODERS_PAD_A_RIGHT { B5 }
  28. // #define ENCODERS_PAD_B_RIGHT { C6 }
  29. # define ENCODER_RESOLUTION 2
  30. #endif