2016-07-12 16:50:06 +02:00
|
|
|
#ifndef KEYBOARDS_ERGODOX_INFINITY_INFINITY_H_
|
|
|
|
#define KEYBOARDS_ERGODOX_INFINITY_INFINITY_H_
|
2016-07-05 15:45:29 +02:00
|
|
|
|
|
|
|
#include "quantum.h"
|
|
|
|
|
2016-07-09 00:38:58 +02:00
|
|
|
void ergodox_board_led_on(void);
|
|
|
|
void ergodox_right_led_1_on(void);
|
|
|
|
void ergodox_right_led_2_on(void);
|
|
|
|
void ergodox_right_led_3_on(void);
|
2017-04-02 00:31:04 +02:00
|
|
|
|
|
|
|
inline void ergodox_right_led_on(uint8_t led) {
|
|
|
|
switch (led) {
|
|
|
|
case 0:
|
|
|
|
ergodox_right_led_1_on();
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
ergodox_right_led_2_on();
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
ergodox_right_led_3_on();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2016-07-09 00:38:58 +02:00
|
|
|
|
|
|
|
void ergodox_board_led_off(void);
|
|
|
|
void ergodox_right_led_1_off(void);
|
|
|
|
void ergodox_right_led_2_off(void);
|
|
|
|
void ergodox_right_led_3_off(void);
|
2017-04-02 00:31:04 +02:00
|
|
|
inline void ergodox_right_led_off(uint8_t led) {
|
|
|
|
switch (led) {
|
|
|
|
case 0:
|
|
|
|
ergodox_right_led_1_off();
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
ergodox_right_led_2_off();
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
ergodox_right_led_3_off();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2016-07-09 00:38:58 +02:00
|
|
|
|
|
|
|
inline void ergodox_led_all_on(void)
|
|
|
|
{
|
|
|
|
ergodox_board_led_on();
|
|
|
|
ergodox_right_led_1_on();
|
|
|
|
ergodox_right_led_2_on();
|
|
|
|
ergodox_right_led_3_on();
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void ergodox_led_all_off(void)
|
|
|
|
{
|
|
|
|
ergodox_board_led_off();
|
|
|
|
ergodox_right_led_1_off();
|
|
|
|
ergodox_right_led_2_off();
|
|
|
|
ergodox_right_led_3_off();
|
|
|
|
}
|
|
|
|
|
2017-04-02 00:31:04 +02:00
|
|
|
void ergodox_right_led_1_set(uint8_t n);
|
|
|
|
void ergodox_right_led_2_set(uint8_t n);
|
|
|
|
void ergodox_right_led_3_set(uint8_t n);
|
2016-07-09 00:38:58 +02:00
|
|
|
|
|
|
|
inline void ergodox_right_led_set(uint8_t led, uint8_t n){
|
2017-04-02 00:31:04 +02:00
|
|
|
switch (led) {
|
|
|
|
case 0:
|
|
|
|
ergodox_right_led_1_set(n);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
ergodox_right_led_2_set(n);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
ergodox_right_led_3_set(n);
|
|
|
|
break;
|
|
|
|
}
|
2016-07-09 00:38:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void ergodox_led_all_set(uint8_t n) {
|
|
|
|
ergodox_right_led_1_set(n);
|
|
|
|
ergodox_right_led_2_set(n);
|
|
|
|
ergodox_right_led_3_set(n);
|
|
|
|
}
|
|
|
|
|
2018-06-13 16:58:23 +02:00
|
|
|
/*
|
|
|
|
* LEFT HAND: LINES 88-95
|
|
|
|
* RIGHT HAND: LINES 97-104
|
|
|
|
*/
|
|
|
|
#define LAYOUT_ergodox( \
|
2016-07-05 15:45:29 +02:00
|
|
|
A80, A70, A60, A50, A40, A30, A20, \
|
|
|
|
A81, A71, A61, A51, A41, A31, A21, \
|
|
|
|
A82, A72, A62, A52, A42, A32, \
|
|
|
|
A83, A73, A63, A53, A43, A33, A23, \
|
|
|
|
A84, A74, A64, A54, A44, \
|
|
|
|
A13, A03, \
|
|
|
|
A04, \
|
|
|
|
A34, A24, A14, \
|
2018-06-13 16:58:23 +02:00
|
|
|
\
|
2016-07-05 15:45:29 +02:00
|
|
|
B20, B30, B40, B50, B60, B70, B80, \
|
|
|
|
B21, B31, B41, B51, B61, B71, B81, \
|
|
|
|
B32, B42, B52, B62, B72, B82, \
|
|
|
|
B23, B33, B43, B53, B63, B73, B83, \
|
|
|
|
B44, B54, B64, B74, B84, \
|
|
|
|
B03, B13, \
|
|
|
|
B04, \
|
|
|
|
B14, B24, B34 \
|
|
|
|
) { \
|
2016-07-08 23:41:15 +02:00
|
|
|
{ KC_NO, KC_NO, KC_NO, A03, A04 }, \
|
|
|
|
{ KC_NO, KC_NO, KC_NO, A13, A14 }, \
|
|
|
|
{ A20, A21, KC_NO, A23, A24 }, \
|
|
|
|
{ A30, A31, A32, A33, A34 }, \
|
|
|
|
{ A40, A41, A42, A43, A44 }, \
|
|
|
|
{ A50, A51, A52, A53, A54 }, \
|
|
|
|
{ A60, A61, A62, A63, A64 }, \
|
|
|
|
{ A70, A71, A72, A73, A74 }, \
|
|
|
|
{ A80, A81, A82, A83, A84 }, \
|
|
|
|
{ KC_NO, KC_NO, KC_NO, B03, B04 }, \
|
|
|
|
{ KC_NO, KC_NO, KC_NO, B13, B14 }, \
|
|
|
|
{ B20, B21, KC_NO, B23, B24 }, \
|
|
|
|
{ B30, B31, B32, B33, B34 }, \
|
|
|
|
{ B40, B41, B42, B43, B44 }, \
|
|
|
|
{ B50, B51, B52, B53, B54 }, \
|
|
|
|
{ B60, B61, B62, B63, B64 }, \
|
|
|
|
{ B70, B71, B72, B73, B74 }, \
|
|
|
|
{ B80, B81, B82, B83, B84 } \
|
2016-07-05 15:45:29 +02:00
|
|
|
}
|
|
|
|
|
2018-06-13 16:58:23 +02:00
|
|
|
/* -------------- LEFT HAND -------------- -------------- RIGHT HAND -------------- */
|
|
|
|
#define LAYOUT_ergodox_pretty( \
|
|
|
|
\
|
2018-04-21 23:00:43 +02:00
|
|
|
A80, A70, A60, A50, A40, A30, A20, B20, B30, B40, B50, B60, B70, B80, \
|
|
|
|
A81, A71, A61, A51, A41, A31, A21, B21, B31, B41, B51, B61, B71, B81, \
|
|
|
|
A82, A72, A62, A52, A42, A32, B32, B42, B52, B62, B72, B82, \
|
|
|
|
A83, A73, A63, A53, A43, A33, A23, B23, B33, B43, B53, B63, B73, B83, \
|
|
|
|
A84, A74, A64, A54, A44, B44, B54, B64, B74, B84, \
|
|
|
|
A13, A03, B03, B13, \
|
|
|
|
A04, B04, \
|
|
|
|
A34, A24, A14, B14, B24, B34 ) \
|
|
|
|
\
|
|
|
|
/* matrix positions */ \
|
|
|
|
{ \
|
|
|
|
{ KC_NO, KC_NO, KC_NO, A03, A04 }, \
|
|
|
|
{ KC_NO, KC_NO, KC_NO, A13, A14 }, \
|
|
|
|
{ A20, A21, KC_NO, A23, A24 }, \
|
|
|
|
{ A30, A31, A32, A33, A34 }, \
|
|
|
|
{ A40, A41, A42, A43, A44 }, \
|
|
|
|
{ A50, A51, A52, A53, A54 }, \
|
|
|
|
{ A60, A61, A62, A63, A64 }, \
|
|
|
|
{ A70, A71, A72, A73, A74 }, \
|
|
|
|
{ A80, A81, A82, A83, A84 }, \
|
|
|
|
{ KC_NO, KC_NO, KC_NO, B03, B04 }, \
|
|
|
|
{ KC_NO, KC_NO, KC_NO, B13, B14 }, \
|
|
|
|
{ B20, B21, KC_NO, B23, B24 }, \
|
|
|
|
{ B30, B31, B32, B33, B34 }, \
|
|
|
|
{ B40, B41, B42, B43, B44 }, \
|
|
|
|
{ B50, B51, B52, B53, B54 }, \
|
|
|
|
{ B60, B61, B62, B63, B64 }, \
|
|
|
|
{ B70, B71, B72, B73, B74 }, \
|
|
|
|
{ B80, B81, B82, B83, B84 } \
|
|
|
|
}
|
|
|
|
|
2016-07-12 16:50:06 +02:00
|
|
|
#endif /* KEYBOARDS_ERGODOX_INFINITY_INFINITY_H_ */
|