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(); 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

View File

@ -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

View File

@ -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:

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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: