app: allow setting matrix colors

This commit is contained in:
King Kévin 2022-08-11 14:14:54 +02:00
parent b7670d1e24
commit af7477d971
1 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ static void drv8825_speed(int16_t speed)
* @param[in] g if the green LED should be on
* @param[in] b if the blue LED should be on
*/
static void wsmatrix_set(int16_t x, int16_t y, bool r, bool g, bool b)
static void wsmatrix_set(int16_t x, int16_t y, uint8_t r, uint8_t g, uint8_t b)
{
if (x < 0 || x >= WSMATRIX_WIDTH) {
return;
@ -198,7 +198,7 @@ static void matrix_set(bool ws, int16_t x, int16_t y, bool r, bool g, bool b)
* @param[in] g if the character should be drawn in green
* @param[in] b if the character should be drawn in blue
*/
static void matrix_putc(bool ws, int16_t x, int16_t y, char c, enum font_name font, bool red, bool green, bool blue)
static void matrix_putc(bool ws, int16_t x, int16_t y, char c, enum font_name font, uint8_t red, uint8_t green, uint8_t blue)
{
#if (0 == RGBPANEL_ENABLE)
if (!ws) {
@ -228,7 +228,7 @@ static void matrix_putc(bool ws, int16_t x, int16_t y, char c, enum font_name fo
if (dot) {
matrix_set(ws, x + col, y + row, red, green, blue);
} else {
matrix_set(ws, x + col, y + row, false, false, false);
matrix_set(ws, x + col, y + row, 0, 0, 0);
}
}
}