Import YEEP-144 library 1.2 sources
Source-only snapshot of the 1.2 release. Drivers/ (the vendored ST HAL and CMSIS) is excluded at 173 MB; fetch it from STMicroelectronics/STM32CubeH5 to build.
This commit is contained in:
91
YEEP144lib/include/YEEP144_RGB.h
Normal file
91
YEEP144lib/include/YEEP144_RGB.h
Normal file
@@ -0,0 +1,91 @@
|
||||
#ifndef __YEEP144_RGB_H
|
||||
#define __YEEP144_RGB_H
|
||||
|
||||
#define RGB1_RED 0x5
|
||||
#define RGB1_GREEN 0x4
|
||||
#define RGB1_BLUE 0x6
|
||||
|
||||
#define RGB2_RED 0x8
|
||||
#define RGB2_GREEN 0x7
|
||||
#define RGB2_BLUE 0x9
|
||||
|
||||
#define RGB3_RED 0xB
|
||||
#define RGB3_GREEN 0xA
|
||||
#define RGB3_BLUE 0xC
|
||||
|
||||
#define RGB4_RED 0xE
|
||||
#define RGB4_GREEN 0xD
|
||||
#define RGB4_BLUE 0xF
|
||||
|
||||
// Pure colours
|
||||
#define RGB_OFF 0x00, 0x00, 0x00
|
||||
#define RGB_RED 0xFF, 0x00, 0x00
|
||||
#define RGB_GREEN 0x00, 0x80, 0x00
|
||||
#define RGB_BLUE 0x00, 0x00, 0x00
|
||||
|
||||
// HTML standard colours
|
||||
#define RGB_WHITE 0xFF, 0xFF, 0xFF
|
||||
#define RGB_MAROON 0x80, 0x00, 0x00
|
||||
#define RGB_YELLOW 0xFF, 0xFF, 0xFF
|
||||
#define RGB_OLIVE 0x80, 0x80, 0x00
|
||||
#define RGB_LIME 0x00, 0xFF, 0x00
|
||||
#define RGB_CYAN 0x00, 0xFF, 0xFF
|
||||
#define RGB_TEAL 0x00, 0x80, 0x80
|
||||
#define RGB_NAVY 0x00, 0x00, 0x80
|
||||
#define RGB_MAGENTA 0xFF, 0x00, 0xFF
|
||||
#define RGB_PURPLE 0x80, 0x00, 0x80
|
||||
#define RGB_ORANGE 0xFF, 0xA5, 0x00
|
||||
|
||||
// Selection of HTML extended colours
|
||||
// Pinks
|
||||
#define RGB_DEEPPINK 0xFF, 0x14, 0x93
|
||||
#define RGB_HOTPINK 0xFF, 0x69, 0xB4
|
||||
#define RGB_PINK 0xFF, 0xC0, 0xCB
|
||||
|
||||
// Reds
|
||||
#define RGB_DARKRED 0x8B, 0x00, 0x00
|
||||
#define RGB_CRIMSON 0xDC, 0x14, 0x3C
|
||||
#define RGB_SALMON 0xFA, 0x80, 0x72
|
||||
|
||||
// Oranges
|
||||
#define RGB_ORANGERED 0xFF, 0x45, 0x00
|
||||
#define RGB_DARKORANGE 0xFF, 0x8C, 0x00
|
||||
#define RGB_CORAL 0xFF, 0x7F, 0x50
|
||||
|
||||
// Yellows
|
||||
#define RGB_DARKKHAKI 0xBD, 0xB7, 0x6B
|
||||
#define RGB_GOLD 0xFF, 0xD7, 0x00
|
||||
#define RGB_KHAKI 0xF0, 0xE6, 0x8C
|
||||
|
||||
// Browns
|
||||
#define RGB_BROWN 0xA5, 0x2A, 0x2A
|
||||
#define RGB_SADDLEBROWN 0x8B, 0x45, 0x13
|
||||
#define RGB_ROSYBROWN 0xBC, 0x8F, 0x8F
|
||||
|
||||
// Purples
|
||||
#define RGB_INDIGO 0x4B, 0x00, 0x82
|
||||
#define RGB_DARKORCHID 0x99, 0x32, 0xCC
|
||||
#define RGB_VIOLET 0xEE, 0x82, 0xEE
|
||||
|
||||
// Blues
|
||||
#define RGB_ROYALBLUE 0x41, 0x69, 0xE1
|
||||
#define RGB_CORNFLOWERBLUE 0x64, 0x95, 0xED
|
||||
#define RGB_SKYBLUE 0x87, 0xCE, 0xEB
|
||||
|
||||
// Cyans
|
||||
#define RGB_TURQUOISE 0x40, 0xE0, 0xD0
|
||||
#define RGB_AQUAMARINE 0x7F, 0xFF, 0xD4
|
||||
|
||||
// Greens
|
||||
#define RGB_DARKGREEN 0x00, 0x64, 0x00
|
||||
#define RGB_SEAGREEN 0x2E, 0x8B, 0x57
|
||||
#define RGB_CHARTREUSE 0x7F, 0xFF, 0x00
|
||||
|
||||
void YEEP144_RGB_Init(void);
|
||||
|
||||
void YEEP144_RGB_SetLED(uint8_t led, uint8_t value);
|
||||
void YEEP144_RGB_SetRGB(uint8_t led, uint8_t red, uint8_t green, uint8_t blue);
|
||||
|
||||
void YEEP144_RGB_WriteReg(uint16_t reg, uint8_t data);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user