Change fading_led_set_direction to fading_led_set_direction_all
This commit is contained in:
parent
3ab4b014eb
commit
83b31d14f9
@ -108,14 +108,14 @@ void backlight_set(uint8_t level)
|
|||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_IN);
|
fading_led_set_direction_all(FADING_LED_FADE_IN);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_OUT);
|
fading_led_set_direction_all(FADING_LED_FADE_OUT);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
@ -108,14 +108,14 @@ void backlight_set(uint8_t level)
|
|||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_IN);
|
fading_led_set_direction_all(FADING_LED_FADE_IN);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_OUT);
|
fading_led_set_direction_all(FADING_LED_FADE_OUT);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
@ -136,14 +136,14 @@ void backlight_set(uint8_t level)
|
|||||||
backlight_enable();
|
backlight_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_IN);
|
fading_led_set_direction_all(FADING_LED_FADE_IN);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
backlight_enable();
|
backlight_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_OUT);
|
fading_led_set_direction_all(FADING_LED_FADE_OUT);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -58,14 +58,14 @@ void backlight_set(uint8_t level)
|
|||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_IN);
|
fading_led_set_direction_all(FADING_LED_FADE_IN);
|
||||||
fading_led_set_duration(4);
|
fading_led_set_duration(4);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_OUT);
|
fading_led_set_direction_all(FADING_LED_FADE_OUT);
|
||||||
fading_led_set_duration(2);
|
fading_led_set_duration(2);
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -108,14 +108,14 @@ void backlight_set(uint8_t level)
|
|||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_IN);
|
fading_led_set_direction_all(FADING_LED_FADE_IN);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_OUT);
|
fading_led_set_direction_all(FADING_LED_FADE_OUT);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
@ -108,14 +108,14 @@ void backlight_set(uint8_t level)
|
|||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_IN);
|
fading_led_set_direction_all(FADING_LED_FADE_IN);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
softpwm_led_enable();
|
softpwm_led_enable();
|
||||||
fading_led_enable_all();
|
fading_led_enable_all();
|
||||||
breathing_led_disable_all();
|
breathing_led_disable_all();
|
||||||
fading_led_set_direction(FADING_LED_FADE_OUT);
|
fading_led_set_direction_all(FADING_LED_FADE_OUT);
|
||||||
fading_led_set_duration(3);
|
fading_led_set_duration(3);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
@ -34,7 +34,7 @@ void backlight_set(uint8_t level)
|
|||||||
backlight_mode = level;
|
backlight_mode = level;
|
||||||
softpwm_led_set_all(0);
|
softpwm_led_set_all(0);
|
||||||
fading_led_set_duration(2);
|
fading_led_set_duration(2);
|
||||||
fading_led_set_direction(FADING_LED_FADE_OUT);
|
fading_led_set_direction_all(FADING_LED_FADE_OUT);
|
||||||
breathing_led_set_duration(3);
|
breathing_led_set_duration(3);
|
||||||
switch (level) {
|
switch (level) {
|
||||||
case 0:
|
case 0:
|
||||||
|
Reference in New Issue
Block a user