2023-12-08 05:54:47 +00:00
|
|
|
// Copyright 2023 QMK
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#if defined(RGB_MATRIX_AW20216S)
|
|
|
|
# include "aw20216s.h"
|
2024-03-17 08:23:14 +00:00
|
|
|
#elif defined(RGB_MATRIX_IS31FL3236)
|
|
|
|
# include "is31fl3236.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#elif defined(RGB_MATRIX_IS31FL3218)
|
|
|
|
# include "is31fl3218.h"
|
2024-02-16 14:41:35 +00:00
|
|
|
#elif defined(RGB_MATRIX_IS31FL3729)
|
|
|
|
# include "is31fl3729.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#elif defined(RGB_MATRIX_IS31FL3731)
|
|
|
|
# include "is31fl3731.h"
|
|
|
|
#elif defined(RGB_MATRIX_IS31FL3733)
|
|
|
|
# include "is31fl3733.h"
|
|
|
|
#elif defined(RGB_MATRIX_IS31FL3736)
|
|
|
|
# include "is31fl3736.h"
|
|
|
|
#elif defined(RGB_MATRIX_IS31FL3737)
|
|
|
|
# include "is31fl3737.h"
|
|
|
|
#elif defined(RGB_MATRIX_IS31FL3741)
|
|
|
|
# include "is31fl3741.h"
|
2024-01-01 01:40:35 +00:00
|
|
|
#elif defined(RGB_MATRIX_IS31FL3742A)
|
|
|
|
# include "is31fl3742a.h"
|
2024-01-01 06:04:51 +00:00
|
|
|
#elif defined(RGB_MATRIX_IS31FL3743A)
|
|
|
|
# include "is31fl3743a.h"
|
2024-01-01 08:31:44 +00:00
|
|
|
#elif defined(RGB_MATRIX_IS31FL3745)
|
|
|
|
# include "is31fl3745.h"
|
2024-01-01 10:44:18 +00:00
|
|
|
#elif defined(RGB_MATRIX_IS31FL3746A)
|
|
|
|
# include "is31fl3746a.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#elif defined(RGB_MATRIX_SNLED27351)
|
|
|
|
# include "snled27351.h"
|
|
|
|
#elif defined(RGB_MATRIX_WS2812)
|
|
|
|
# include "ws2812.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* Perform any initialisation required for the other driver functions to work. */
|
|
|
|
void (*init)(void);
|
|
|
|
/* Set the colour of a single LED in the buffer. */
|
|
|
|
void (*set_color)(int index, uint8_t r, uint8_t g, uint8_t b);
|
|
|
|
/* Set the colour of all LEDS on the keyboard in the buffer. */
|
|
|
|
void (*set_color_all)(uint8_t r, uint8_t g, uint8_t b);
|
|
|
|
/* Flush any buffered changes to the hardware. */
|
|
|
|
void (*flush)(void);
|
|
|
|
} rgb_matrix_driver_t;
|
|
|
|
|
|
|
|
extern const rgb_matrix_driver_t rgb_matrix_driver;
|