Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LED drivers: add support for shutdown pin #23058

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3218-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "is31fl3218-mono.h"
#include "i2c_master.h"
#include "gpio.h"

#define IS31FL3218_PWM_REGISTER_COUNT 18
#define IS31FL3218_LED_CONTROL_REGISTER_COUNT 3
Expand Down Expand Up @@ -66,6 +67,11 @@ void is31fl3218_write_pwm_buffer(void) {
void is31fl3218_init(void) {
i2c_init();

#if defined(IS31FL3218_SDB_PIN)
setPinOutput(IS31FL3218_SDB_PIN);
writePinHigh(IS31FL3218_SDB_PIN);
#endif

// In case we ever want to reinitialize (?)
is31fl3218_write_register(IS31FL3218_REG_RESET, 0x00);

Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3218.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "is31fl3218.h"
#include "i2c_master.h"
#include "gpio.h"

#define IS31FL3218_PWM_REGISTER_COUNT 18
#define IS31FL3218_LED_CONTROL_REGISTER_COUNT 3
Expand Down Expand Up @@ -66,6 +67,11 @@ void is31fl3218_write_pwm_buffer(void) {
void is31fl3218_init(void) {
i2c_init();

#if defined(IS31FL3218_SDB_PIN)
setPinOutput(IS31FL3218_SDB_PIN);
writePinHigh(IS31FL3218_SDB_PIN);
#endif

// In case we ever want to reinitialize (?)
is31fl3218_write_register(IS31FL3218_REG_RESET, 0x00);

Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3731-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "is31fl3731-mono.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3731_PWM_REGISTER_COUNT 144
Expand Down Expand Up @@ -97,6 +98,11 @@ void is31fl3731_write_pwm_buffer(uint8_t index) {
void is31fl3731_init_drivers(void) {
i2c_init();

#if defined(IS31FL3731_SDB_PIN)
setPinOutput(IS31FL3731_SDB_PIN);
writePinHigh(IS31FL3731_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3731_DRIVER_COUNT; i++) {
is31fl3731_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3731.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include "is31fl3731.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3731_PWM_REGISTER_COUNT 144
Expand Down Expand Up @@ -96,6 +97,11 @@ void is31fl3731_write_pwm_buffer(uint8_t index) {
void is31fl3731_init_drivers(void) {
i2c_init();

#if defined(IS31FL3731_SDB_PIN)
setPinOutput(IS31FL3731_SDB_PIN);
writePinHigh(IS31FL3731_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3731_DRIVER_COUNT; i++) {
is31fl3731_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3733-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "is31fl3733-mono.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3733_PWM_REGISTER_COUNT 192
Expand Down Expand Up @@ -142,6 +143,11 @@ void is31fl3733_write_pwm_buffer(uint8_t index) {
void is31fl3733_init_drivers(void) {
i2c_init();

#if defined(IS31FL3733_SDB_PIN)
setPinOutput(IS31FL3733_SDB_PIN);
writePinHigh(IS31FL3733_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3733_DRIVER_COUNT; i++) {
is31fl3733_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3733.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "is31fl3733.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3733_PWM_REGISTER_COUNT 192
Expand Down Expand Up @@ -141,6 +142,11 @@ void is31fl3733_write_pwm_buffer(uint8_t index) {
void is31fl3733_init_drivers(void) {
i2c_init();

#if defined(IS31FL3733_SDB_PIN)
setPinOutput(IS31FL3733_SDB_PIN);
writePinHigh(IS31FL3733_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3733_DRIVER_COUNT; i++) {
is31fl3733_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3736-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "is31fl3736-mono.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3736_PWM_REGISTER_COUNT 192 // actually 96
Expand Down Expand Up @@ -113,6 +114,11 @@ void is31fl3736_write_pwm_buffer(uint8_t index) {
void is31fl3736_init_drivers(void) {
i2c_init();

#if defined(IS31FL3736_SDB_PIN)
setPinOutput(IS31FL3736_SDB_PIN);
writePinHigh(IS31FL3736_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3736_DRIVER_COUNT; i++) {
is31fl3736_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3736.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "is31fl3736.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3736_PWM_REGISTER_COUNT 192 // actually 96
Expand Down Expand Up @@ -113,6 +114,11 @@ void is31fl3736_write_pwm_buffer(uint8_t index) {
void is31fl3736_init_drivers(void) {
i2c_init();

#if defined(IS31FL3736_SDB_PIN)
setPinOutput(IS31FL3736_SDB_PIN);
writePinHigh(IS31FL3736_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3736_DRIVER_COUNT; i++) {
is31fl3736_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3737-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "is31fl3737-mono.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3737_PWM_REGISTER_COUNT 192 // actually 144
Expand Down Expand Up @@ -115,6 +116,11 @@ void is31fl3737_write_pwm_buffer(uint8_t index) {
void is31fl3737_init_drivers(void) {
i2c_init();

#if defined(IS31FL3737_SDB_PIN)
setPinOutput(IS31FL3737_SDB_PIN);
writePinHigh(IS31FL3737_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3737_DRIVER_COUNT; i++) {
is31fl3737_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3737.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "is31fl3737.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3737_PWM_REGISTER_COUNT 192 // actually 144
Expand Down Expand Up @@ -115,6 +116,11 @@ void is31fl3737_write_pwm_buffer(uint8_t index) {
void is31fl3737_init_drivers(void) {
i2c_init();

#if defined(IS31FL3737_SDB_PIN)
setPinOutput(IS31FL3737_SDB_PIN);
writePinHigh(IS31FL3737_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3737_DRIVER_COUNT; i++) {
is31fl3737_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3741-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "is31fl3741-mono.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3741_PWM_REGISTER_COUNT 351
Expand Down Expand Up @@ -130,6 +131,11 @@ void is31fl3741_write_pwm_buffer(uint8_t index) {
void is31fl3741_init_drivers(void) {
i2c_init();

#if defined(IS31FL3741_SDB_PIN)
setPinOutput(IS31FL3741_SDB_PIN);
writePinHigh(IS31FL3741_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3741_DRIVER_COUNT; i++) {
is31fl3741_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3741.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "is31fl3741.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3741_PWM_REGISTER_COUNT 351
Expand Down Expand Up @@ -130,6 +131,11 @@ void is31fl3741_write_pwm_buffer(uint8_t index) {
void is31fl3741_init_drivers(void) {
i2c_init();

#if defined(IS31FL3741_SDB_PIN)
setPinOutput(IS31FL3741_SDB_PIN);
writePinHigh(IS31FL3741_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3741_DRIVER_COUNT; i++) {
is31fl3741_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3742a-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "is31fl3742a-mono.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3742A_PWM_REGISTER_COUNT 180
Expand Down Expand Up @@ -114,6 +115,11 @@ void is31fl3742a_write_pwm_buffer(uint8_t index) {
void is31fl3742a_init_drivers(void) {
i2c_init();

#if defined(IS31FL3742A_SDB_PIN)
setPinOutput(IS31FL3742A_SDB_PIN);
writePinHigh(IS31FL3742A_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3742A_DRIVER_COUNT; i++) {
is31fl3742a_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3742a.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "is31fl3742a.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3742A_PWM_REGISTER_COUNT 180
Expand Down Expand Up @@ -114,6 +115,11 @@ void is31fl3742a_write_pwm_buffer(uint8_t index) {
void is31fl3742a_init_drivers(void) {
i2c_init();

#if defined(IS31FL3742A_SDB_PIN)
setPinOutput(IS31FL3742A_SDB_PIN);
writePinHigh(IS31FL3742A_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3742A_DRIVER_COUNT; i++) {
is31fl3742a_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3743a-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "is31fl3743a-mono.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3743A_PWM_REGISTER_COUNT 198
Expand Down Expand Up @@ -136,6 +137,11 @@ void is31fl3743a_write_pwm_buffer(uint8_t index) {
void is31fl3743a_init_drivers(void) {
i2c_init();

#if defined(IS31FL3743A_SDB_PIN)
setPinOutput(IS31FL3743A_SDB_PIN);
writePinHigh(IS31FL3743A_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3743A_DRIVER_COUNT; i++) {
is31fl3743a_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3743a.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "is31fl3743a.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3743A_PWM_REGISTER_COUNT 198
Expand Down Expand Up @@ -136,6 +137,11 @@ void is31fl3743a_write_pwm_buffer(uint8_t index) {
void is31fl3743a_init_drivers(void) {
i2c_init();

#if defined(IS31FL3743A_SDB_PIN)
setPinOutput(IS31FL3743A_SDB_PIN);
writePinHigh(IS31FL3743A_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3743A_DRIVER_COUNT; i++) {
is31fl3743a_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3745-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "is31fl3745-mono.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3745_PWM_REGISTER_COUNT 144
Expand Down Expand Up @@ -136,6 +137,11 @@ void is31fl3745_write_pwm_buffer(uint8_t index) {
void is31fl3745_init_drivers(void) {
i2c_init();

#if defined(IS31FL3745_SDB_PIN)
setPinOutput(IS31FL3745_SDB_PIN);
writePinHigh(IS31FL3745_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3745_DRIVER_COUNT; i++) {
is31fl3745_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3745.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "is31fl3745.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3745_PWM_REGISTER_COUNT 144
Expand Down Expand Up @@ -136,6 +137,11 @@ void is31fl3745_write_pwm_buffer(uint8_t index) {
void is31fl3745_init_drivers(void) {
i2c_init();

#if defined(IS31FL3745_SDB_PIN)
setPinOutput(IS31FL3745_SDB_PIN);
writePinHigh(IS31FL3745_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3745_DRIVER_COUNT; i++) {
is31fl3745_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3746a-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "is31fl3746a-mono.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3746A_PWM_REGISTER_COUNT 72
Expand Down Expand Up @@ -114,6 +115,11 @@ void is31fl3746a_write_pwm_buffer(uint8_t index) {
void is31fl3746a_init_drivers(void) {
i2c_init();

#if defined(IS31FL3746A_SDB_PIN)
setPinOutput(IS31FL3746A_SDB_PIN);
writePinHigh(IS31FL3746A_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3746A_DRIVER_COUNT; i++) {
is31fl3746a_init(i);
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/led/issi/is31fl3746a.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "is31fl3746a.h"
#include "i2c_master.h"
#include "gpio.h"
#include "wait.h"

#define IS31FL3746A_PWM_REGISTER_COUNT 72
Expand Down Expand Up @@ -114,6 +115,11 @@ void is31fl3746a_write_pwm_buffer(uint8_t index) {
void is31fl3746a_init_drivers(void) {
i2c_init();

#if defined(IS31FL3746A_SDB_PIN)
setPinOutput(IS31FL3746A_SDB_PIN);
writePinHigh(IS31FL3746A_SDB_PIN);
#endif

for (uint8_t i = 0; i < IS31FL3746A_DRIVER_COUNT; i++) {
is31fl3746a_init(i);
}
Expand Down
Loading
Loading