Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
lp581x_animation_pattern Struct Reference

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.

Detailed Description

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

Field Documentation

◆ duration

enum lp581x_phase_duration lp581x_animation_pattern::duration

Duration of pre-pause.

Duration of psot-pause.

Duration of sloper steps.

◆ play_count

uint8_t lp581x_animation_pattern::play_count

Number of times to run, 0 to 14 or LP581X_PATTERN_PLAY_FOREVER.

◆ [struct]

struct { ... } lp581x_animation_pattern::post_pause

Pause after pattern stops running.

◆ [struct]

struct { ... } lp581x_animation_pattern::pre_pause

Pause before pattern starts running.

◆ pwm

uint8_t lp581x_animation_pattern::pwm

LED intensity in pre-pause.

LED intensity in psot-pause.

Brightness of sloper steps.

◆ [struct]

struct { ... } lp581x_animation_pattern::sloper

Sloper configuration steps.


The documentation for this struct was generated from the following file: