Rename point_t
-> led_point_t
(#12864)
This commit is contained in:
parent
07800e82c9
commit
92fbadeb1b
4 changed files with 12 additions and 12 deletions
|
@ -28,9 +28,9 @@
|
||||||
#include <lib/lib8tion/lib8tion.h>
|
#include <lib/lib8tion/lib8tion.h>
|
||||||
|
|
||||||
#ifndef LED_MATRIX_CENTER
|
#ifndef LED_MATRIX_CENTER
|
||||||
const point_t k_led_matrix_center = {112, 32};
|
const led_point_t k_led_matrix_center = {112, 32};
|
||||||
#else
|
#else
|
||||||
const point_t k_led_matrix_center = LED_MATRIX_CENTER;
|
const led_point_t k_led_matrix_center = LED_MATRIX_CENTER;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Generic effect runners
|
// Generic effect runners
|
||||||
|
|
|
@ -61,7 +61,7 @@ typedef struct PACKED {
|
||||||
typedef struct PACKED {
|
typedef struct PACKED {
|
||||||
uint8_t x;
|
uint8_t x;
|
||||||
uint8_t y;
|
uint8_t y;
|
||||||
} point_t;
|
} led_point_t;
|
||||||
|
|
||||||
#define HAS_FLAGS(bits, flags) ((bits & flags) == flags)
|
#define HAS_FLAGS(bits, flags) ((bits & flags) == flags)
|
||||||
#define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00)
|
#define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00)
|
||||||
|
@ -76,7 +76,7 @@ typedef struct PACKED {
|
||||||
|
|
||||||
typedef struct PACKED {
|
typedef struct PACKED {
|
||||||
uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
|
uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
|
||||||
point_t point[DRIVER_LED_TOTAL];
|
led_point_t point[DRIVER_LED_TOTAL];
|
||||||
uint8_t flags[DRIVER_LED_TOTAL];
|
uint8_t flags[DRIVER_LED_TOTAL];
|
||||||
} led_config_t;
|
} led_config_t;
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@
|
||||||
#include <lib/lib8tion/lib8tion.h>
|
#include <lib/lib8tion/lib8tion.h>
|
||||||
|
|
||||||
#ifndef RGB_MATRIX_CENTER
|
#ifndef RGB_MATRIX_CENTER
|
||||||
const point_t k_rgb_matrix_center = {112, 32};
|
const led_point_t k_rgb_matrix_center = {112, 32};
|
||||||
#else
|
#else
|
||||||
const point_t k_rgb_matrix_center = RGB_MATRIX_CENTER;
|
const led_point_t k_rgb_matrix_center = RGB_MATRIX_CENTER;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__attribute__((weak)) RGB rgb_matrix_hsv_to_rgb(HSV hsv) { return hsv_to_rgb(hsv); }
|
__attribute__((weak)) RGB rgb_matrix_hsv_to_rgb(HSV hsv) { return hsv_to_rgb(hsv); }
|
||||||
|
|
|
@ -62,7 +62,7 @@ typedef struct PACKED {
|
||||||
typedef struct PACKED {
|
typedef struct PACKED {
|
||||||
uint8_t x;
|
uint8_t x;
|
||||||
uint8_t y;
|
uint8_t y;
|
||||||
} point_t;
|
} led_point_t;
|
||||||
|
|
||||||
#define HAS_FLAGS(bits, flags) ((bits & flags) == flags)
|
#define HAS_FLAGS(bits, flags) ((bits & flags) == flags)
|
||||||
#define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00)
|
#define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00)
|
||||||
|
@ -78,7 +78,7 @@ typedef struct PACKED {
|
||||||
|
|
||||||
typedef struct PACKED {
|
typedef struct PACKED {
|
||||||
uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
|
uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
|
||||||
point_t point[DRIVER_LED_TOTAL];
|
led_point_t point[DRIVER_LED_TOTAL];
|
||||||
uint8_t flags[DRIVER_LED_TOTAL];
|
uint8_t flags[DRIVER_LED_TOTAL];
|
||||||
} led_config_t;
|
} led_config_t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue