libyggdrasil  v1.0.0
rgb_matrix.h
Go to the documentation of this file.
1  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * _____.___. .___ .__.__ *
3  * \__ | | ____ ____ __| _/___________ _____|__| | *
4  * / | |/ ___\ / ___\ / __ |\_ __ \__ \ / ___/ | | *
5  * \____ / /_/ > /_/ > /_/ | | | \// __ \_\___ \| | |__ *
6  * / ______\___ /\___ /\____ | |__| (____ /____ >__|____/ *
7  * \/ /_____//_____/ \/ \/ \/ *
8  * - Yggdrasil - *
9  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10  * This software can be used by students and other personal of the *
11  * Bern University of Applied Sciences under the terms of the MIT *
12  * license. *
13  * For other persons this software is under the terms of the GNU *
14  * General Public License version 2. *
15  * *
16  * Copyright © 2021, Bern University of Applied Sciences. *
17  * All rights reserved. *
18  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
26 #pragma once
27 
28 #include <c/yggdrasil/types.h>
29 
36 
41 
46 
51 
59 
67 
75 
u16
uint16_t u16
Definition: types.h:37
u8
uint8_t u8
Unsigned integer definitions.
Definition: types.h:36
yggdrasil_RGBMatrix_Dice
C_LINKAGE void yggdrasil_RGBMatrix_Dice(u8 number, RGBA8 color)
Function to display a dice.
yggdrasil_RGBMatrix_SetLed
C_LINKAGE void yggdrasil_RGBMatrix_SetLed(u8 index, RGBA8 color)
set a single led to RGBA8 color
yggdrasil_RGBMatrix_Enable
C_LINKAGE void yggdrasil_RGBMatrix_Enable(void)
Enables the SK9822 led.
yggdrasil_RGBMatrix_Init
C_LINKAGE void yggdrasil_RGBMatrix_Init(void)
Initialization function.
types.h
yggdrasil_RGBMatrix_Clear
C_LINKAGE void yggdrasil_RGBMatrix_Clear(void)
Clear all leds.
C_LINKAGE
#define C_LINKAGE
Definition: attributes.h:43
yggdrasil_RGBMatrix_SetLedMasked
C_LINKAGE void yggdrasil_RGBMatrix_SetLedMasked(u16 enableMask, RGBA8 color)
set multiple leds to RGBA8 color using a bit mask
yggdrasil_RGBMatrix_Disable
C_LINKAGE void yggdrasil_RGBMatrix_Disable(void)
Disable the SK9822 led.
yggdrasil_RGBMatrix_Flush
C_LINKAGE void yggdrasil_RGBMatrix_Flush(void)
Send the saved color values to the leds.
RGBA8
RGBA8 color type.
Definition: types.h:31