diff options
| author | Ryan <fauxpark@gmail.com> | 2023-09-04 10:19:59 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-04 01:19:59 +0100 |
| commit | 41bd4e35a09cc50f45112074d2b776254a3a17f8 (patch) | |
| tree | 9258c5ad40dda232e3b8271942b436bdafa6f115 /keyboards/ibm | |
| parent | 1e3095f9cce45fab0a566e692b1ff1c2047cfa08 (diff) | |
Clean up RGB LED type (#21859)
Diffstat (limited to 'keyboards/ibm')
| -rw-r--r-- | keyboards/ibm/model_m/mschwingen/mschwingen.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/keyboards/ibm/model_m/mschwingen/mschwingen.c b/keyboards/ibm/model_m/mschwingen/mschwingen.c index b764660e21..8e3810cd23 100644 --- a/keyboards/ibm/model_m/mschwingen/mschwingen.c +++ b/keyboards/ibm/model_m/mschwingen/mschwingen.c | |||
| @@ -39,26 +39,26 @@ static uint8_t isRecording = 0; | |||
| 39 | # if RGBLED_NUM < 3 | 39 | # if RGBLED_NUM < 3 |
| 40 | # error we need at least 3 RGB LEDs! | 40 | # error we need at least 3 RGB LEDs! |
| 41 | # endif | 41 | # endif |
| 42 | static cRGB led[RGBLED_NUM] = {{255, 255, 255}, {255, 255, 255}, {255, 255, 255}}; | 42 | static rgb_led_t led[RGBLED_NUM] = {{255, 255, 255}, {255, 255, 255}, {255, 255, 255}}; |
| 43 | 43 | ||
| 44 | # define BRIGHT 32 | 44 | # define BRIGHT 32 |
| 45 | # define DIM 6 | 45 | # define DIM 6 |
| 46 | 46 | ||
| 47 | static const cRGB black = {.r = 0, .g = 0, .b = 0}; | 47 | static const rgb_led_t black = {.r = 0, .g = 0, .b = 0}; |
| 48 | 48 | ||
| 49 | static const __attribute__((unused)) cRGB green = {.r = 0, .g = BRIGHT, .b = 0}; | 49 | static const __attribute__((unused)) rgb_led_t green = {.r = 0, .g = BRIGHT, .b = 0}; |
| 50 | static const __attribute__((unused)) cRGB lgreen = {.r = 0, .g = DIM, .b = 0}; | 50 | static const __attribute__((unused)) rgb_led_t lgreen = {.r = 0, .g = DIM, .b = 0}; |
| 51 | 51 | ||
| 52 | static const __attribute__((unused)) cRGB red = {.r = BRIGHT, .g = 0, .b = 0}; | 52 | static const __attribute__((unused)) rgb_led_t red = {.r = BRIGHT, .g = 0, .b = 0}; |
| 53 | static const __attribute__((unused)) cRGB lred = {.r = DIM, .g = 0, .b = 0}; | 53 | static const __attribute__((unused)) rgb_led_t lred = {.r = DIM, .g = 0, .b = 0}; |
| 54 | 54 | ||
| 55 | static const __attribute__((unused)) cRGB blue = {.r = 0, .g = 0, .b = BRIGHT}; | 55 | static const __attribute__((unused)) rgb_led_t blue = {.r = 0, .g = 0, .b = BRIGHT}; |
| 56 | static const __attribute__((unused)) cRGB lblue = {.r = 0, .g = 0, .b = DIM}; | 56 | static const __attribute__((unused)) rgb_led_t lblue = {.r = 0, .g = 0, .b = DIM}; |
| 57 | 57 | ||
| 58 | static const __attribute__((unused)) cRGB turq = {.r = 0, .g = BRIGHT, .b = BRIGHT}; | 58 | static const __attribute__((unused)) rgb_led_t turq = {.r = 0, .g = BRIGHT, .b = BRIGHT}; |
| 59 | static const __attribute__((unused)) cRGB lturq = {.r = 0, .g = DIM, .b = DIM}; | 59 | static const __attribute__((unused)) rgb_led_t lturq = {.r = 0, .g = DIM, .b = DIM}; |
| 60 | 60 | ||
| 61 | static const __attribute__((unused)) cRGB white = {.r = BRIGHT, .g = BRIGHT, .b = BRIGHT}; | 61 | static const __attribute__((unused)) rgb_led_t white = {.r = BRIGHT, .g = BRIGHT, .b = BRIGHT}; |
| 62 | 62 | ||
| 63 | static led_t led_state; | 63 | static led_t led_state; |
| 64 | static uint8_t layer; | 64 | static uint8_t layer; |
