Skip to content

Commit

Permalink
LED drivers: rename "simple" to "mono" (qmk#22814)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Jan 4, 2024
1 parent 1bd9b92 commit 597de0e
Show file tree
Hide file tree
Showing 35 changed files with 44 additions and 44 deletions.
22 changes: 11 additions & 11 deletions builddefs/common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/feature_led_matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "is31fl3742a-simple.h"
#include "is31fl3742a-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "is31fl3743a-simple.h"
#include "is31fl3743a-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "is31fl3745-simple.h"
#include "is31fl3745-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "is31fl3746a-simple.h"
#include "is31fl3746a-mono.h"
#include <string.h>
#include "i2c_master.h"
#include "wait.h"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion keyboards/fallacy/indicators.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion keyboards/fallacy/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion keyboards/wilba_tech/wt60_a/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion keyboards/wilba_tech/wt65_a/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion keyboards/wilba_tech/wt65_b/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion keyboards/wilba_tech/wt75_a/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion keyboards/wilba_tech/wt75_b/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion keyboards/wilba_tech/wt75_c/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion keyboards/wilba_tech/wt80_a/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion keyboards/wilba_tech/wt_mono_backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
22 changes: 11 additions & 11 deletions quantum/led_matrix/led_matrix_drivers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 597de0e

Please sign in to comment.