diff options
author | Nick Brassel <nick@tzarc.org> | 2021-03-02 12:18:07 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 12:18:07 +1100 |
commit | 75ab48958ce3f96efe4c7bbabb85d1e64ab81b81 (patch) | |
tree | 333d4a1e72206f86d11ded0cee98a7649ae89fed /keyboards/k_type/led.c | |
parent | 3200007a69a078903f673d954310697f41fc1612 (diff) |
Revert "Fixing K-type RGB lighting (#11551)" (#12065)
This reverts commit e6f7da403676b491ac278d5b793d18a0d114477e.
Diffstat (limited to 'keyboards/k_type/led.c')
-rw-r--r-- | keyboards/k_type/led.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/keyboards/k_type/led.c b/keyboards/k_type/led.c deleted file mode 100644 index 421a7f9446..0000000000 --- a/keyboards/k_type/led.c +++ /dev/null @@ -1,53 +0,0 @@ -/* Copyright 2021 Andrew Fahmy - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * 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 <rgb_matrix.h> -#include "i2c_master.h" -#include "is31fl3733.h" - - - -static void init(void) { - i2c_init(&I2CD1, I2C1_SCL_BANK, I2C1_SDA_BANK, I2C1_SCL, I2C1_SDA); - IS31FL3733_init(0, DRIVER_ADDR_1, 0); -# ifdef USE_I2C2 - i2c_init(&I2CD2, I2C2_SCL_BANK, I2C2_SDA_BANK, I2C2_SCL, I2C2_SDA); - IS31FL3733_init(1, DRIVER_ADDR_2, 0); -# endif - for (int index = 0; index < DRIVER_LED_TOTAL; index++) { - bool enabled = true; - // This only caches it for later - IS31FL3733_set_led_control_register(index, enabled, enabled, enabled); - } - IS31FL3733_update_led_control_registers(DRIVER_ADDR_1, 0); -# ifdef USE_I2C2 - IS31FL3733_update_led_control_registers(DRIVER_ADDR_2, 1); -# endif -} - -static void flush(void) { - IS31FL3733_update_pwm_buffers(DRIVER_ADDR_1, 0); -# ifdef USE_I2C2 - IS31FL3733_update_pwm_buffers(DRIVER_ADDR_2, 1); -# endif -} - -const rgb_matrix_driver_t rgb_matrix_driver = { - .init = init, - .flush = flush, - .set_color = IS31FL3733_set_color, - .set_color_all = IS31FL3733_set_color_all, -};
\ No newline at end of file |