1 #ifndef KEYBOARDS_ERGODOX_INFINITY_INFINITY_H_
2 #define KEYBOARDS_ERGODOX_INFINITY_INFINITY_H_
6 void ergodox_board_led_on(void);
7 void ergodox_right_led_1_on(void);
8 void ergodox_right_led_2_on(void);
9 void ergodox_right_led_3_on(void);
11 inline void ergodox_right_led_on(uint8_t led) {
14 ergodox_right_led_1_on();
17 ergodox_right_led_2_on();
20 ergodox_right_led_3_on();
25 void ergodox_board_led_off(void);
26 void ergodox_right_led_1_off(void);
27 void ergodox_right_led_2_off(void);
28 void ergodox_right_led_3_off(void);
29 inline void ergodox_right_led_off(uint8_t led) {
32 ergodox_right_led_1_off();
35 ergodox_right_led_2_off();
38 ergodox_right_led_3_off();
43 inline void ergodox_led_all_on(void)
45 ergodox_board_led_on();
46 ergodox_right_led_1_on();
47 ergodox_right_led_2_on();
48 ergodox_right_led_3_on();
51 inline void ergodox_led_all_off(void)
53 ergodox_board_led_off();
54 ergodox_right_led_1_off();
55 ergodox_right_led_2_off();
56 ergodox_right_led_3_off();
59 void ergodox_right_led_1_set(uint8_t n);
60 void ergodox_right_led_2_set(uint8_t n);
61 void ergodox_right_led_3_set(uint8_t n);
63 inline void ergodox_right_led_set(uint8_t led, uint8_t n){
66 ergodox_right_led_1_set(n);
69 ergodox_right_led_2_set(n);
72 ergodox_right_led_3_set(n);
77 inline void ergodox_led_all_set(uint8_t n) {
78 ergodox_right_led_1_set(n);
79 ergodox_right_led_2_set(n);
80 ergodox_right_led_3_set(n);
84 A80, A70, A60, A50, A40, A30, A20, \
85 A81, A71, A61, A51, A41, A31, A21, \
86 A82, A72, A62, A52, A42, A32, \
87 A83, A73, A63, A53, A43, A33, A23, \
88 A84, A74, A64, A54, A44, \
92 B20, B30, B40, B50, B60, B70, B80, \
93 B21, B31, B41, B51, B61, B71, B81, \
94 B32, B42, B52, B62, B72, B82, \
95 B23, B33, B43, B53, B63, B73, B83, \
96 B44, B54, B64, B74, B84, \
101 { KC_NO, KC_NO, KC_NO, A03, A04 }, \
102 { KC_NO, KC_NO, KC_NO, A13, A14 }, \
103 { A20, A21, KC_NO, A23, A24 }, \
104 { A30, A31, A32, A33, A34 }, \
105 { A40, A41, A42, A43, A44 }, \
106 { A50, A51, A52, A53, A54 }, \
107 { A60, A61, A62, A63, A64 }, \
108 { A70, A71, A72, A73, A74 }, \
109 { A80, A81, A82, A83, A84 }, \
110 { KC_NO, KC_NO, KC_NO, B03, B04 }, \
111 { KC_NO, KC_NO, KC_NO, B13, B14 }, \
112 { B20, B21, KC_NO, B23, B24 }, \
113 { B30, B31, B32, B33, B34 }, \
114 { B40, B41, B42, B43, B44 }, \
115 { B50, B51, B52, B53, B54 }, \
116 { B60, B61, B62, B63, B64 }, \
117 { B70, B71, B72, B73, B74 }, \
118 { B80, B81, B82, B83, B84 } \
121 #endif /* KEYBOARDS_ERGODOX_INFINITY_INFINITY_H_ */