alt.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "quantum.h"
  3. #include "config_led.h"
  4. #include "matrix.h"
  5. #include "i2c_master.h"
  6. #include "led_matrix.h" //For led keycodes
  7. #include "usb/udi_cdc.h"
  8. #include "usb/usb2422.h"
  9. #define LAYOUT( \
  10. K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, K13, K14, K15, \
  11. K16, K17, K18, K19, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K30, \
  12. K31, K32, K33, K34, K35, K36, K37, K38, K39, K40, K41, K42, K43, K44, K45, \
  13. K46, K47, K48, K49, K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K60, \
  14. K61, K62, K63, K64, K65, K66, K67 \
  15. ) { \
  16. { K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, K13, K14, K15, }, \
  17. { K16, K17, K18, K19, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K30, }, \
  18. { K31, K32, K33, K34, K35, K36, K37, K38, K39, K40, K41, K42, KC_NO, K43, K44, }, \
  19. { K45, KC_NO, K46, K47, K48, K49, K50, K51, K52, K53, K54, K55, K56, K57, K58, }, \
  20. { K59, K60, K61, KC_NO, KC_NO, KC_NO, K62, KC_NO, KC_NO, KC_NO, K63, K64, K65, K66, K67, }, \
  21. }
  22. #define TOGGLE_FLAG_AND_PRINT(var, name) { \
  23. if (var) { \
  24. dprintf(name " disabled\r\n"); \
  25. var = !var; \
  26. } else { \
  27. var = !var; \
  28. dprintf(name " enabled\r\n"); \
  29. } \
  30. }