OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spi_rgb.h File Reference

Detailed Description

Control RGB Pixels using SPI.

Include dependency graph for spi_rgb.h:

Go to the source code of this file.

Data Structures

struct  SPIRGBConfiguration
 SPI RGB Module configuration. More...
 

Enumerations

enum  RGB_Color { RED = 0, GREEN = 1, BLUE = 2 }
 RGB color values.
 

Functions

void SPIRGB_Init (const SPIRGBConfiguration *config)
 Initialize the SPI RGB module. More...
 
void SPIRGB_BeginUpdate ()
 Begin a frame update. More...
 
void SPIRGB_SetPixel (uint16_t index, RGB_Color color, uint8_t value)
 Set the value of a pixel. More...
 
void SPIRGB_CompleteUpdate ()
 Complete a frame update. More...
 
void SPIRGB_Tasks ()
 Perform the periodic SPI RGB tasks. More...