PixelKey
NeoPixel USB Key
Loading...
Searching...
No Matches
pixelkey.h
1#ifndef PIXELKEY_H
2#define PIXELKEY_H
3
4#include <stdbool.h>
5#include <stdint.h>
6
7#include "helper_macros.h"
8
9#include "color.h"
10
11#include "pixelkey_errors.h"
12#include "pixelkey_commands.h"
13
14#include "keyframes.h"
15
29pixelkey_error_t pixelkey_keyframeproc_push(uint8_t index, keyframe_base_t * p_keyframe);
30
36
39#endif // PIXELKEY_H
uint8_t framerate_t
Number of frames per second.
Definition: keyframes.h:55
void pixelkey_commandproc_terminal_connected(void)
Writes the initial device info and terminal prompt when a terminal attach is detected.
Definition: command_processor.c:161
void pixelkey_keyframeproc_framerate_set(framerate_t framerate)
Sets the framerate used to render keyframes.
Definition: keyframe_processor.c:161
void pixelkey_commandproc_init(void)
Initialize the command processor.
Definition: command_processor.c:107
pixelkey_error_t
PixelKey errors.
Definition: pixelkey_errors.h:11
uint32_t pixelkey_keyframeproc_framecount_get(void)
Gets the total numbered of rendered frames.
Definition: keyframe_processor.c:180
void pixelkey_frameproc_init(framerate_t framerate)
Initializes the keyframe processor.
Definition: keyframe_processor.c:189
pixelkey_error_t pixelkey_keyframeproc_render_frame(color_rgb_t *p_frame_buffer)
Performs a render of the current keyframes.
Definition: keyframe_processor.c:57
void pixelkey_commandproc_task(void)
Executes queued commands.
Definition: command_processor.c:131
void pixelkey_commandproc_send_prompt(void)
Writes the terminal prompt.
Definition: command_processor.c:176
pixelkey_error_t pixelkey_commandproc_push(cmd_t *p_cmd)
Pushes a command to the processor buffer.
Definition: command_processor.c:118
pixelkey_error_t pixelkey_keyframeproc_push(uint8_t index, keyframe_base_t *p_keyframe)
Pushes a keyframe into the queue for a given NeoPixel index.
Definition: keyframe_processor.c:143
Parsed command and arguments.
Definition: pixelkey_commands.h:131
Color represented in red-green-blue color space.
Definition: color.h:70