Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename point_t -> led_point_t #12864

Merged
merged 1 commit into from
May 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions quantum/led_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#include <lib/lib8tion/lib8tion.h>

#ifndef LED_MATRIX_CENTER
const point_t k_led_matrix_center = {112, 32};
const led_point_t k_led_matrix_center = {112, 32};
#else
const point_t k_led_matrix_center = LED_MATRIX_CENTER;
const led_point_t k_led_matrix_center = LED_MATRIX_CENTER;
#endif

// Generic effect runners
Expand Down
8 changes: 4 additions & 4 deletions quantum/led_matrix_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ typedef struct PACKED {
typedef struct PACKED {
uint8_t x;
uint8_t y;
} point_t;
} led_point_t;

#define HAS_FLAGS(bits, flags) ((bits & flags) == flags)
#define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00)
Expand All @@ -75,9 +75,9 @@ typedef struct PACKED {
#define NO_LED 255

typedef struct PACKED {
uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
point_t point[DRIVER_LED_TOTAL];
uint8_t flags[DRIVER_LED_TOTAL];
uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
led_point_t point[DRIVER_LED_TOTAL];
uint8_t flags[DRIVER_LED_TOTAL];
} led_config_t;

typedef union {
Expand Down
4 changes: 2 additions & 2 deletions quantum/rgb_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
#include <lib/lib8tion/lib8tion.h>

#ifndef RGB_MATRIX_CENTER
const point_t k_rgb_matrix_center = {112, 32};
const led_point_t k_rgb_matrix_center = {112, 32};
#else
const point_t k_rgb_matrix_center = RGB_MATRIX_CENTER;
const led_point_t k_rgb_matrix_center = RGB_MATRIX_CENTER;
#endif

__attribute__((weak)) RGB rgb_matrix_hsv_to_rgb(HSV hsv) { return hsv_to_rgb(hsv); }
Expand Down
8 changes: 4 additions & 4 deletions quantum/rgb_matrix_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ typedef struct PACKED {
typedef struct PACKED {
uint8_t x;
uint8_t y;
} point_t;
} led_point_t;

#define HAS_FLAGS(bits, flags) ((bits & flags) == flags)
#define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00)
Expand All @@ -77,9 +77,9 @@ typedef struct PACKED {
#define NO_LED 255

typedef struct PACKED {
uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
point_t point[DRIVER_LED_TOTAL];
uint8_t flags[DRIVER_LED_TOTAL];
uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS];
led_point_t point[DRIVER_LED_TOTAL];
uint8_t flags[DRIVER_LED_TOTAL];
} led_config_t;

typedef union {
Expand Down