PixelKey
NeoPixel USB Key
Loading...
Searching...
No Matches
Set Keyframe

Keyframe to set a NeoPixel to a constant color. More...

Data Structures

struct  keyframe_set_t
 Set keyframe. More...
 

Functions

static bool keyframe_set_render_frame (keyframe_base_t *const p_keyframe, timestep_t time, color_rgb_t *p_color_out)
 
static void keyframe_set_render_init (keyframe_base_t *const p_keyframe, framerate_t framerate, color_rgb_t current_color)
 
static keyframe_base_t * keyframe_set_clone (keyframe_base_t const *const p_keyframe)
 
keyframe_base_t * keyframe_set_parse (char *p_str)
 Parses a command string into a Set Keyframe. More...
 
keyframe_base_t * keyframe_set_ctor (keyframe_set_t *p_set)
 Initialize a Set keyframe with the appropriate keyframe_base_t values. More...
 

Variables

static const keyframe_base_api_t keyframe_set_api
 
static const keyframe_set_t keyframe_set_init
 

Detailed Description

Keyframe to set a NeoPixel to a constant color.

Function Documentation

◆ keyframe_set_ctor()

keyframe_base_t * keyframe_set_ctor ( keyframe_set_t p_set)

Initialize a Set keyframe with the appropriate keyframe_base_t values.

Parameters
[in]p_setPointer to the set keyframe to construct, or NULL to allocate a new one.
Returns
Pointer to the keyframe base portion of the set keyframe.

◆ keyframe_set_parse()

keyframe_base_t * keyframe_set_parse ( char *  p_str)

Parses a command string into a Set Keyframe.

Parameters
[in]p_strPointer to the command string.
Returns
Pointer to the parsed keyframe or NULL on error.

Variable Documentation

◆ keyframe_set_api

const keyframe_base_api_t keyframe_set_api
static
Initial value:
=
{
.render_frame = keyframe_set_render_frame,
.render_init = keyframe_set_render_init,
.clone = keyframe_set_clone,
}

◆ keyframe_set_init

const keyframe_set_t keyframe_set_init
static
Initial value:
=
{
.base = { .p_api = &keyframe_set_api },
}