libyggdrasil  v1.0.0
rgb_matrix.h File Reference

Driver to use the SK9822 RGB Led (APA102 clone) More...

Include dependency graph for rgb_matrix.h:

Go to the source code of this file.

Functions

C_LINKAGE void yggdrasil_RGBMatrix_Init (void)
 Initialization function. More...
 
C_LINKAGE void yggdrasil_RGBMatrix_Enable (void)
 Enables the SK9822 led. More...
 
C_LINKAGE void yggdrasil_RGBMatrix_Disable (void)
 Disable the SK9822 led. More...
 
C_LINKAGE void yggdrasil_RGBMatrix_Clear (void)
 Clear all leds. More...
 
C_LINKAGE void yggdrasil_RGBMatrix_SetLed (u8 index, RGBA8 color)
 set a single led to RGBA8 color More...
 
C_LINKAGE void yggdrasil_RGBMatrix_SetLedMasked (u16 enableMask, RGBA8 color)
 set multiple leds to RGBA8 color using a bit mask More...
 
C_LINKAGE void yggdrasil_RGBMatrix_Dice (u8 number, RGBA8 color)
 Function to display a dice. More...
 
C_LINKAGE void yggdrasil_RGBMatrix_Flush (void)
 Send the saved color values to the leds. More...
 

Detailed Description

Driver to use the SK9822 RGB Led (APA102 clone)

Author
Fabian Weber, Nikolaij Saegesser

Function Documentation

◆ yggdrasil_RGBMatrix_Clear()

C_LINKAGE void yggdrasil_RGBMatrix_Clear ( void  )

Clear all leds.

◆ yggdrasil_RGBMatrix_Dice()

C_LINKAGE void yggdrasil_RGBMatrix_Dice ( u8  number,
RGBA8  color 
)

Function to display a dice.

Parameters
numberNumber to display
colorRGBA8 color

◆ yggdrasil_RGBMatrix_Disable()

C_LINKAGE void yggdrasil_RGBMatrix_Disable ( void  )

Disable the SK9822 led.

◆ yggdrasil_RGBMatrix_Enable()

C_LINKAGE void yggdrasil_RGBMatrix_Enable ( void  )

Enables the SK9822 led.

◆ yggdrasil_RGBMatrix_Flush()

C_LINKAGE void yggdrasil_RGBMatrix_Flush ( void  )

Send the saved color values to the leds.

◆ yggdrasil_RGBMatrix_Init()

C_LINKAGE void yggdrasil_RGBMatrix_Init ( void  )

Initialization function.

Returns
Success

◆ yggdrasil_RGBMatrix_SetLed()

C_LINKAGE void yggdrasil_RGBMatrix_SetLed ( u8  index,
RGBA8  color 
)

set a single led to RGBA8 color

Parameters
indexLed number from 0 to 8
colorRGBA8 color

◆ yggdrasil_RGBMatrix_SetLedMasked()

C_LINKAGE void yggdrasil_RGBMatrix_SetLedMasked ( u16  enableMask,
RGBA8  color 
)

set multiple leds to RGBA8 color using a bit mask

Parameters
enableMaskBitmask to enabled the leds
colorRGBA8 color