1
0

Change fading_led_set_direction to fading_led_set_direction_all

This commit is contained in:
Kai Ryu 2015-05-22 18:20:57 +09:00
parent 3ab4b014eb
commit 83b31d14f9
7 changed files with 13 additions and 13 deletions

View File

@ -108,14 +108,14 @@ void backlight_set(uint8_t level)
softpwm_led_enable();
fading_led_enable_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);
break;
case 8:
softpwm_led_enable();
fading_led_enable_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);
break;
#endif

View File

@ -108,14 +108,14 @@ void backlight_set(uint8_t level)
softpwm_led_enable();
fading_led_enable_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);
break;
case 8:
softpwm_led_enable();
fading_led_enable_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);
break;
#endif

View File

@ -136,14 +136,14 @@ void backlight_set(uint8_t level)
backlight_enable();
fading_led_enable_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);
break;
case 8:
backlight_enable();
fading_led_enable_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);
break;
case 0:

View File

@ -58,14 +58,14 @@ void backlight_set(uint8_t level)
softpwm_led_enable();
fading_led_enable_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);
break;
case 8:
softpwm_led_enable();
fading_led_enable_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);
break;
case 0:

View File

@ -108,14 +108,14 @@ void backlight_set(uint8_t level)
softpwm_led_enable();
fading_led_enable_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);
break;
case 8:
softpwm_led_enable();
fading_led_enable_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);
break;
#endif

View File

@ -108,14 +108,14 @@ void backlight_set(uint8_t level)
softpwm_led_enable();
fading_led_enable_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);
break;
case 8:
softpwm_led_enable();
fading_led_enable_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);
break;
#endif

View File

@ -34,7 +34,7 @@ void backlight_set(uint8_t level)
backlight_mode = level;
softpwm_led_set_all(0);
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);
switch (level) {
case 0: