1
0
Fork 0
forked from forks/qmk_firmware

Change AW20216 SPI Mode from 0 to 3, to fix RGB LEDs on GMMK Pro (#17262)

This commit is contained in:
trwnh 2022-05-30 23:46:21 -05:00 committed by GitHub
parent 650be92cf9
commit b554e4b612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ bool g_pwm_buffer_update_required[DRIVER_COUNT] = {false};
bool AW20216_write(pin_t cs_pin, uint8_t page, uint8_t reg, uint8_t* data, uint8_t len) { bool AW20216_write(pin_t cs_pin, uint8_t page, uint8_t reg, uint8_t* data, uint8_t len) {
static uint8_t s_spi_transfer_buffer[2] = {0}; static uint8_t s_spi_transfer_buffer[2] = {0};
if (!spi_start(cs_pin, false, 0, AW_SPI_DIVISOR)) { if (!spi_start(cs_pin, false, 3, AW_SPI_DIVISOR)) {
spi_stop(); spi_stop();
return false; return false;
} }