LED drivers: rename "simple" to "mono" (#22814)

This commit is contained in:
Ryan 2024-01-04 17:05:37 +11:00 committed by GitHub
parent 1bd9b9204d
commit 597de0e298
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 44 additions and 44 deletions

View file

@ -362,67 +362,67 @@ ifeq ($(strip $(LED_MATRIX_ENABLE)), yes)
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3218)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3218-simple.c
SRC += is31fl3218-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3731)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3731-simple.c
SRC += is31fl3731-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3733)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3733-simple.c
SRC += is31fl3733-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3736)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3736-simple.c
SRC += is31fl3736-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3737)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3737-simple.c
SRC += is31fl3737-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3741)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3741-simple.c
SRC += is31fl3741-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3742a)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3742a-simple.c
SRC += is31fl3742a-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3743a)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3743a-simple.c
SRC += is31fl3743a-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3745)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3745-simple.c
SRC += is31fl3745-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), is31fl3746a)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led/issi
SRC += is31fl3746a-simple.c
SRC += is31fl3746a-mono.c
endif
ifeq ($(strip $(LED_MATRIX_DRIVER)), snled27351)
I2C_DRIVER_REQUIRED = yes
COMMON_VPATH += $(DRIVER_PATH)/led
SRC += snled27351-simple.c
SRC += snled27351-mono.c
endif
endif

View file

@ -65,7 +65,7 @@ const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = {
}
```
Where `Cx_y` is the location of the LED in the matrix defined by [the datasheet](https://www.issi.com/WW/pdf/31FL3731.pdf) and the header file `drivers/led/issi/is31fl3731-simple.h`. The `driver` is the index of the driver you defined in your `config.h` (`0`, `1`, `2`, or `3` ).
Where `Cx_y` is the location of the LED in the matrix defined by [the datasheet](https://www.issi.com/WW/pdf/31FL3731.pdf) and the header file `drivers/led/issi/is31fl3731-mono.h`. The `driver` is the index of the driver you defined in your `config.h` (`0`, `1`, `2`, or `3` ).
---
### IS31FLCOMMON :id=is31flcommon

View file

@ -13,7 +13,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "is31fl3218-simple.h"
#include "is31fl3218-mono.h"
#include <string.h>
#include "i2c_master.h"

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "is31fl3731-simple.h"
#include "is31fl3731-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "is31fl3733-simple.h"
#include "is31fl3733-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "is31fl3736-simple.h"
#include "is31fl3736-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "is31fl3737-simple.h"
#include "is31fl3737-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "is31fl3741-simple.h"
#include "is31fl3741-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"

View file

@ -1,4 +1,4 @@
#include "is31fl3742a-simple.h"
#include "is31fl3742a-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"

View file

@ -1,4 +1,4 @@
#include "is31fl3743a-simple.h"
#include "is31fl3743a-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"

View file

@ -1,4 +1,4 @@
#include "is31fl3745-simple.h"
#include "is31fl3745-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"

View file

@ -1,4 +1,4 @@
#include "is31fl3746a-simple.h"
#include "is31fl3746a-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"

View file

@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "snled27351-simple.h"
#include "snled27351-mono.h"
#include "i2c_master.h"
#define SNLED27351_PWM_REGISTER_COUNT 192

View file

@ -15,7 +15,7 @@
*/
#include "indicators.h"
#include "drivers/led/issi/is31fl3731-simple.h"
#include "drivers/led/issi/is31fl3731-mono.h"
#include "i2c_master.h"
/* Set up IS31FL3731 for use in powering indicator LEDs. Absolutely overkill for this job but it was already in the design.

View file

@ -13,5 +13,5 @@ AUDIO_ENABLE = no # Audio output
# project specific files
SRC += indicators.c \
drivers/led/issi/is31fl3731-simple.c
drivers/led/issi/is31fl3731-mono.c
I2C_DRIVER_REQUIRED = yes

View file

@ -11,7 +11,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
# project specific files
SRC = drivers/led/issi/is31fl3736-simple.c \
SRC = drivers/led/issi/is31fl3736-mono.c \
quantum/color.c \
keyboards/wilba_tech/wt_mono_backlight.c \
keyboards/wilba_tech/wt_main.c

View file

@ -11,7 +11,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
# project specific files
SRC = drivers/led/issi/is31fl3736-simple.c \
SRC = drivers/led/issi/is31fl3736-mono.c \
quantum/color.c \
keyboards/wilba_tech/wt_mono_backlight.c \
keyboards/wilba_tech/wt_main.c

View file

@ -11,7 +11,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
# project specific files
SRC = drivers/led/issi/is31fl3736-simple.c \
SRC = drivers/led/issi/is31fl3736-mono.c \
quantum/color.c \
keyboards/wilba_tech/wt_mono_backlight.c \
keyboards/wilba_tech/wt_main.c

View file

@ -11,7 +11,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
# project specific files
SRC = drivers/led/issi/is31fl3736-simple.c \
SRC = drivers/led/issi/is31fl3736-mono.c \
quantum/color.c \
keyboards/wilba_tech/wt_mono_backlight.c \
keyboards/wilba_tech/wt_main.c

View file

@ -11,7 +11,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
# project specific files
SRC = drivers/led/issi/is31fl3736-simple.c \
SRC = drivers/led/issi/is31fl3736-mono.c \
quantum/color.c \
keyboards/wilba_tech/wt_mono_backlight.c \
keyboards/wilba_tech/wt_main.c

View file

@ -11,7 +11,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
# project specific files
SRC = drivers/led/issi/is31fl3736-simple.c \
SRC = drivers/led/issi/is31fl3736-mono.c \
quantum/color.c \
keyboards/wilba_tech/wt_mono_backlight.c \
keyboards/wilba_tech/wt_main.c

View file

@ -11,7 +11,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
# project specific files
SRC = drivers/led/issi/is31fl3736-simple.c \
SRC = drivers/led/issi/is31fl3736-mono.c \
quantum/color.c \
keyboards/wilba_tech/wt_mono_backlight.c \
keyboards/wilba_tech/wt_main.c

View file

@ -33,7 +33,7 @@
#error VIA_EEPROM_CUSTOM_CONFIG_SIZE was not defined to store backlight_config struct
#endif
#include "drivers/led/issi/is31fl3736-simple.h"
#include "drivers/led/issi/is31fl3736-mono.h"
#define BACKLIGHT_EFFECT_MAX 3

View file

@ -6,27 +6,27 @@
#include <stdint.h>
#if defined(LED_MATRIX_IS31FL3218)
# include "is31fl3218-simple.h"
# include "is31fl3218-mono.h"
#elif defined(LED_MATRIX_IS31FL3731)
# include "is31fl3731-simple.h"
# include "is31fl3731-mono.h"
#elif defined(LED_MATRIX_IS31FL3733)
# include "is31fl3733-simple.h"
# include "is31fl3733-mono.h"
#elif defined(LED_MATRIX_IS31FL3736)
# include "is31fl3736-simple.h"
# include "is31fl3736-mono.h"
#elif defined(LED_MATRIX_IS31FL3737)
# include "is31fl3737-simple.h"
# include "is31fl3737-mono.h"
#elif defined(LED_MATRIX_IS31FL3741)
# include "is31fl3741-simple.h"
# include "is31fl3741-mono.h"
#elif defined(LED_MATRIX_IS31FL3742A)
# include "is31fl3742a-simple.h"
# include "is31fl3742a-mono.h"
#elif defined(LED_MATRIX_IS31FL3743A)
# include "is31fl3743a-simple.h"
# include "is31fl3743a-mono.h"
#elif defined(LED_MATRIX_IS31FL3745)
# include "is31fl3745-simple.h"
# include "is31fl3745-mono.h"
#elif defined(LED_MATRIX_IS31FL3746A)
# include "is31fl3746a-simple.h"
# include "is31fl3746a-mono.h"
#elif defined(LED_MATRIX_SNLED27351)
# include "snled27351-simple.h"
# include "snled27351-mono.h"
#endif
typedef struct {