Formatting
parent
d40756b91e
commit
c7649ca758
|
@ -79,8 +79,7 @@ void matrix_init_kb(void) {
|
|||
matrix_init_user();
|
||||
}
|
||||
|
||||
void ergodox_blink_all_leds(void)
|
||||
{
|
||||
void ergodox_blink_all_leds(void) {
|
||||
ergodox_led_all_off();
|
||||
ergodox_led_all_set(LED_BRIGHTNESS_DEFAULT);
|
||||
ergodox_right_led_1_on();
|
||||
|
@ -372,11 +371,13 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|||
case TOGGLE_LAYER_COLOR:
|
||||
if (record->event.pressed) {
|
||||
keyboard_config.disable_layer_led ^= 1;
|
||||
if (keyboard_config.disable_layer_led)
|
||||
if (keyboard_config.disable_layer_led) {
|
||||
rgb_matrix_set_color_all(0, 0, 0);
|
||||
}
|
||||
eeconfig_update_kb(keyboard_config.raw);
|
||||
}
|
||||
break;
|
||||
|
||||
case RGB_TOG:
|
||||
if (record->event.pressed) {
|
||||
switch (rgb_matrix_get_flags()) {
|
||||
|
|
|
@ -80,8 +80,7 @@ inline void ergodox_left_led_2_off(void) { ergodox_left_led_2 = 0; }
|
|||
inline void ergodox_left_led_3_off(void) { ergodox_left_led_3 = 0; }
|
||||
#endif // LEFT_LEDS
|
||||
|
||||
inline void ergodox_led_all_on(void)
|
||||
{
|
||||
inline void ergodox_led_all_on(void) {
|
||||
ergodox_board_led_on();
|
||||
ergodox_right_led_1_on();
|
||||
ergodox_right_led_2_on();
|
||||
|
@ -93,8 +92,7 @@ inline void ergodox_led_all_on(void)
|
|||
#endif // LEFT_LEDS
|
||||
}
|
||||
|
||||
inline void ergodox_led_all_off(void)
|
||||
{
|
||||
inline void ergodox_led_all_off(void) {
|
||||
ergodox_board_led_off();
|
||||
ergodox_right_led_1_off();
|
||||
ergodox_right_led_2_off();
|
||||
|
@ -115,8 +113,7 @@ inline void ergodox_right_led_set(uint8_t led, uint8_t n) {
|
|||
(OCR1C = n);
|
||||
}
|
||||
|
||||
inline void ergodox_led_all_set(uint8_t n)
|
||||
{
|
||||
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);
|
||||
|
@ -140,8 +137,8 @@ typedef union {
|
|||
extern keyboard_config_t keyboard_config;
|
||||
|
||||
/*
|
||||
* LEFT HAND: LINES 115-122
|
||||
* RIGHT HAND: LINES 124-131
|
||||
LEFT HAND: LINES 115-122
|
||||
RIGHT HAND: LINES 124-131
|
||||
*/
|
||||
#define LAYOUT_ergodox( \
|
||||
\
|
||||
|
@ -183,8 +180,8 @@ extern keyboard_config_t keyboard_config;
|
|||
}
|
||||
|
||||
/*
|
||||
* LEFT HAND: LINES 158-165
|
||||
* RIGHT HAND: LINES 167-174
|
||||
LEFT HAND: LINES 158-165
|
||||
RIGHT HAND: LINES 167-174
|
||||
*/
|
||||
#define LAYOUT_ergodox_80( \
|
||||
\
|
||||
|
|
Loading…
Reference in New Issue