Update ISSI LED types (#22099)
This commit is contained in:
parent
c0f16be50f
commit
d99dbe4d56
148 changed files with 262 additions and 239 deletions
|
@ -61,12 +61,12 @@
|
|||
#define IS31FL3741_I2C_ADDRESS_SDA 0x32
|
||||
#define IS31FL3741_I2C_ADDRESS_VCC 0x33
|
||||
|
||||
typedef struct is31_led {
|
||||
typedef struct is31fl3741_led_t {
|
||||
uint32_t driver : 2;
|
||||
uint32_t v : 10;
|
||||
} __attribute__((packed)) is31_led;
|
||||
} __attribute__((packed)) is31fl3741_led_t;
|
||||
|
||||
extern const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT];
|
||||
extern const is31fl3741_led_t PROGMEM g_is31fl3741_leds[RGB_MATRIX_LED_COUNT];
|
||||
|
||||
void is31fl3741_init(uint8_t addr);
|
||||
void is31fl3741_write_register(uint8_t addr, uint8_t reg, uint8_t data);
|
||||
|
@ -83,9 +83,9 @@ void is31fl3741_set_led_control_register(uint8_t index, bool value);
|
|||
// If the buffer is dirty, it will update the driver with the buffer.
|
||||
void is31fl3741_update_pwm_buffers(uint8_t addr, uint8_t index);
|
||||
void is31fl3741_update_led_control_registers(uint8_t addr, uint8_t index);
|
||||
void is31fl3741_set_scaling_registers(const is31_led *pled, uint8_t value);
|
||||
void is31fl3741_set_scaling_registers(const is31fl3741_led_t *pled, uint8_t value);
|
||||
|
||||
void is31fl3741_set_pwm_buffer(const is31_led *pled, uint8_t value);
|
||||
void is31fl3741_set_pwm_buffer(const is31fl3741_led *pled, uint8_t value);
|
||||
|
||||
#define IS31FL3741_PUR_0R 0x00 // No PUR resistor
|
||||
#define IS31FL3741_PUR_05KR 0x01 // 0.5k Ohm resistor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue