2023-12-08 16:54:47 +11: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 17:05:37 +11:00
|
|
|
# include "is31fl3218-mono.h"
|
2024-03-17 19:23:14 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3236)
|
|
|
|
# include "is31fl3236-mono.h"
|
2024-02-16 21:41:35 +07:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3729)
|
|
|
|
# include "is31fl3729-mono.h"
|
2023-12-08 16:54:47 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3731)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "is31fl3731-mono.h"
|
2023-12-08 16:54:47 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3733)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "is31fl3733-mono.h"
|
2023-12-08 16:54:47 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3736)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "is31fl3736-mono.h"
|
2023-12-08 16:54:47 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3737)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "is31fl3737-mono.h"
|
2023-12-08 16:54:47 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3741)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "is31fl3741-mono.h"
|
2024-01-01 12:40:35 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3742A)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "is31fl3742a-mono.h"
|
2024-01-01 17:04:51 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3743A)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "is31fl3743a-mono.h"
|
2024-01-01 19:31:44 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3745)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "is31fl3745-mono.h"
|
2024-01-01 21:44:18 +11:00
|
|
|
#elif defined(LED_MATRIX_IS31FL3746A)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "is31fl3746a-mono.h"
|
2023-12-08 16:54:47 +11:00
|
|
|
#elif defined(LED_MATRIX_SNLED27351)
|
2024-01-04 17:05:37 +11:00
|
|
|
# include "snled27351-mono.h"
|
2023-12-08 16:54:47 +11: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;
|