|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
LED pattern configuration. More...
#include <lp581x.h>
Data Fields | |
| struct { | |
| uint8_t pwm | |
| LED intensity in pre-pause. More... | |
| enum lp581x_phase_duration duration | |
| Duration of pre-pause. More... | |
| } | pre_pause |
| Pause before pattern starts running. | |
| struct { | |
| uint8_t play_count | |
| Number of times to run, 0 to 14 or LP581X_PATTERN_PLAY_FOREVER. More... | |
| uint8_t pwm [3] | |
| Brightness of sloper steps. More... | |
| enum lp581x_phase_duration duration [4] | |
| Duration of sloper steps. More... | |
| } | sloper |
| Sloper configuration steps. | |
| struct { | |
| uint8_t pwm | |
| LED intensity in psot-pause. More... | |
| enum lp581x_phase_duration duration | |
| Duration of psot-pause. More... | |
| } | post_pause |
| Pause after pattern stops running. | |
LED pattern configuration.
Pattern: Static PWM output (pre_pause) N runs of varying output (sloper) Static PWM output (post_pause)
Refer to datasheet section 7.3.4.1 for explanatory graphics
| enum lp581x_phase_duration lp581x_animation_pattern::duration |
Duration of pre-pause.
Duration of psot-pause.
Duration of sloper steps.
| uint8_t lp581x_animation_pattern::play_count |
Number of times to run, 0 to 14 or LP581X_PATTERN_PLAY_FOREVER.
| struct { ... } lp581x_animation_pattern::post_pause |
Pause after pattern stops running.
| struct { ... } lp581x_animation_pattern::pre_pause |
Pause before pattern starts running.
| uint8_t lp581x_animation_pattern::pwm |
LED intensity in pre-pause.
LED intensity in psot-pause.
Brightness of sloper steps.
| struct { ... } lp581x_animation_pattern::sloper |
Sloper configuration steps.