Keyboard firmwares for Atmel AVR and Cortex-M
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.

actionmap_common.h 877B

5 jaren geleden
1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef ACTIONMAP_COMMON_H
  2. #define ACTIONMAP_COMMON_H
  3. #include "rgblight.h"
  4. enum function_id {
  5. RGBLED_TOGGLE,
  6. RGBLED_STEP_MODE,
  7. RGBLED_INCREASE_HUE,
  8. RGBLED_DECREASE_HUE,
  9. RGBLED_INCREASE_SAT,
  10. RGBLED_DECREASE_SAT,
  11. RGBLED_INCREASE_VAL,
  12. RGBLED_DECREASE_VAL,
  13. };
  14. #define ACTIONMAP( \
  15. K00, K01, K02, K03, K04, \
  16. K10, K11, K12, K13, K14, \
  17. K20, K21, K22, K23, K24, \
  18. \
  19. K30, K31, K32, K33, K34, \
  20. K40, K41, K42, K43, K44, \
  21. K50, K51, K52, K53, K54 \
  22. ) { \
  23. { AC_##K00, AC_##K01, AC_##K02, AC_##K03, AC_##K04 }, \
  24. { AC_##K10, AC_##K11, AC_##K12, AC_##K13, AC_##K14 }, \
  25. { AC_##K20, AC_##K21, AC_##K22, AC_##K23, AC_##K24 }, \
  26. \
  27. { AC_##K34, AC_##K33, AC_##K32, AC_##K31, AC_##K30 }, \
  28. { AC_##K44, AC_##K43, AC_##K42, AC_##K41, AC_##K40 }, \
  29. { AC_##K54, AC_##K53, AC_##K52, AC_##K51, AC_##K50 } \
  30. }
  31. #endif