From c0f16be50fec33cdb30386ac512efb900f3f7470 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 4 Oct 2023 20:10:05 +1100 Subject: Rename CKLED2001 driver to SNLED27351 (#22071) --- keyboards/skyloong/gk61/v1/config.h | 17 ++--------------- keyboards/skyloong/gk61/v1/info.json | 2 +- keyboards/skyloong/gk61/v1/v1.c | 4 ++-- 3 files changed, 5 insertions(+), 18 deletions(-) (limited to 'keyboards/skyloong/gk61/v1') diff --git a/keyboards/skyloong/gk61/v1/config.h b/keyboards/skyloong/gk61/v1/config.h index f648bf80d4..153bd8d0eb 100644 --- a/keyboards/skyloong/gk61/v1/config.h +++ b/keyboards/skyloong/gk61/v1/config.h @@ -15,22 +15,9 @@ */ #pragma once -/* - * RGB matrix driver config (CKLED2001) - * - * This is a 7-bit address, that gets left-shifted and bit 0 - * set to 0 for write, 1 for read (as per I2C protocol) - * The address will vary depending on your wiring: - * 00 <-> GND - * 01 <-> SCL - * 10 <-> SDA - * 11 <-> VCC - * ADDR/CS represents A1:A0 of the 7-bit address. - * The result is: 0b11101(ADDR/CS) - */ -#define DRIVER_ADDR_1 0b1110100 +#define DRIVER_ADDR_1 SNLED27351_I2C_ADDRESS_GND -#define DRIVER_COUNT 1 +#define SNLED27351_DRIVER_COUNT 1 #define RGB_MATRIX_LED_COUNT 64 #define RGB_MATRIX_FRAMEBUFFER_EFFECTS //Enable frame effects diff --git a/keyboards/skyloong/gk61/v1/info.json b/keyboards/skyloong/gk61/v1/info.json index 8e30cc3bc0..6015efa12c 100644 --- a/keyboards/skyloong/gk61/v1/info.json +++ b/keyboards/skyloong/gk61/v1/info.json @@ -42,7 +42,7 @@ "splash": true, "solid_splash": true }, - "driver": "ckled2001", + "driver": "snled27351", "hue_steps": 20, "layout": [ {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4}, diff --git a/keyboards/skyloong/gk61/v1/v1.c b/keyboards/skyloong/gk61/v1/v1.c index 5fed5701b2..cb3772f6b4 100644 --- a/keyboards/skyloong/gk61/v1/v1.c +++ b/keyboards/skyloong/gk61/v1/v1.c @@ -17,8 +17,8 @@ #ifdef RGB_MATRIX_ENABLE -const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = { -/* Refer to CKLED2001 manual for these locations +const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = { +/* Refer to SNLED27351 manual for these locations * driver * | R location * | | G location -- cgit v1.2.3