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(LED_MATRIX_IS31FL3218)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3218-mono.h"
|
2024-03-17 08:23:14 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3236)
|
|
|
|
# include "is31fl3236-mono.h"
|
2024-02-16 14:41:35 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3729)
|
|
|
|
# include "is31fl3729-mono.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3731)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3731-mono.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3733)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3733-mono.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3736)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3736-mono.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3737)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3737-mono.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3741)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3741-mono.h"
|
2024-01-01 01:40:35 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3742A)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3742a-mono.h"
|
2024-01-01 06:04:51 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3743A)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3743a-mono.h"
|
2024-01-01 08:31:44 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3745)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3745-mono.h"
|
2024-01-01 10:44:18 +00:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3746A)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "is31fl3746a-mono.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#elif defined(LED_MATRIX_SNLED27351)
|
2024-01-04 06:05:37 +00:00
|
|
|
# include "snled27351-mono.h"
|
2023-12-08 05:54:47 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* Perform any initialisation required for the other driver functions to work. */
|
|
|
|
void (*init)(void);
|
|
|
|
|
|
|
|
/* Set the brightness of a single LED in the buffer. */
|
|
|
|
void (*set_value)(int index, uint8_t value);
|
|
|
|
/* Set the brightness of all LEDS on the keyboard in the buffer. */
|
|
|
|
void (*set_value_all)(uint8_t value);
|
|
|
|
/* Flush any buffered changes to the hardware. */
|
|
|
|
void (*flush)(void);
|
|
|
|
} led_matrix_driver_t;
|
|
|
|
|
|
|
|
extern const led_matrix_driver_t led_matrix_driver;
|