ckled2001: driver naming cleanups (#21890)

This commit is contained in:
Ryan 2023-09-13 22:47:01 +10:00 committed by GitHub
parent eb2db05e8a
commit 35aceab1a4
Failed to generate hash of commit
37 changed files with 320 additions and 289 deletions

View file

@ -20,7 +20,7 @@
// #define MATRIX_UNSELECT_DRIVE_HIGH
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -29,8 +29,7 @@
#define DRIVER_2_LED_TOTAL 39
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
/* Set led driver current */
#define CKLED2001_CURRENT_TUNE \
{ 0x9D, 0x9D, 0x44, 0x9D, 0x9D, 0x44, 0x9D, 0x9D, 0x44, 0x9D, 0x9D, 0x44 }

View file

@ -20,14 +20,13 @@
// #define MATRIX_UNSELECT_DRIVE_HIGH
/* LED Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110100
/* LED Matrix Configuration */
#define LED_MATRIX_LED_COUNT 90
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
/* Set led driver current */
#define CKLED2001_CURRENT_TUNE \
{ 0x9D, 0x9D, 0x44, 0x9D, 0x9D, 0x44, 0x9D, 0x9D, 0x44, 0x9D, 0x9D, 0x44 }

View file

@ -17,7 +17,7 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100

View file

@ -17,7 +17,7 @@
#pragma once
/* LED Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110100
/* Set LED driver current */

View file

@ -17,7 +17,7 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110100
/* RGB Matrix Configuration */

View file

@ -17,15 +17,14 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110111
/* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 26
#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
/* Enable num-lock LED */
#define NUM_LOCK_LED_INDEX 5

View file

@ -30,7 +30,7 @@
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -41,8 +41,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
#define CKLED2001_CURRENT_TUNE \
{ 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A }

View file

@ -27,7 +27,7 @@
#define MATRIX_MASKED // actual mask is defined by `matrix_mask` in `q11.c`
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110100
/* Increase I2C speed to 1000 KHz */

View file

@ -26,7 +26,7 @@
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100

View file

@ -22,12 +22,11 @@
#define DIP_SWITCH_MATRIX_GRID { {4, 4} }
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
/* Disable DIP switch in matrix data */
#define MATRIX_MASKED

View file

@ -24,7 +24,7 @@
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -35,8 +35,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
/* DIP switch */
#define DIP_SWITCH_MATRIX_GRID { {5, 4} }

View file

@ -17,7 +17,7 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -26,8 +26,7 @@
#define DRIVER_2_LED_TOTAL 30
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
#define CKLED2001_CURRENT_TUNE \
{ 0xCA, 0xCA, 0x60, 0xCA, 0xCA, 0x60, 0xCA, 0xCA, 0x60, 0xCA, 0xCA, 0x60 }

View file

@ -17,7 +17,7 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110100
/* RGB Matrix Configuration */

View file

@ -17,7 +17,7 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110100
/* RGB Matrix Configuration */

View file

@ -30,7 +30,7 @@
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100

View file

@ -24,7 +24,7 @@
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100

View file

@ -17,7 +17,7 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110100
/* Increase I2C speed to 1000 KHz */

View file

@ -26,7 +26,7 @@
{ NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, A2, A3, A4, A5, A6, A7, B0, B1 }
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -37,8 +37,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 30U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
#define CKLED2001_CURRENT_TUNE \
{ 0xB8, 0xB8, 0x58, 0xB8, 0xB8, 0x58, 0xB8, 0xB8, 0x58, 0xB8, 0xB8, 0x58 }

View file

@ -17,7 +17,7 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -28,8 +28,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define SCAN_PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
#define CKLED2001_CURRENT_TUNE \
{ 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80 }

View file

@ -20,7 +20,7 @@
// #define MATRIX_UNSELECT_DRIVE_HIGH
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -31,8 +31,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
#define CKLED2001_CURRENT_TUNE \
{ 0xC4, 0xC4, 0x60, 0xC4, 0xC4, 0x60, 0xC4, 0xC4, 0x60, 0xC4, 0xC4, 0x60 }

View file

@ -23,7 +23,7 @@
#define DIP_SWITCH_MATRIX_GRID { { 3, 4 } }
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110100
/* Increase I2C speed to 1000 KHz */

View file

@ -17,15 +17,14 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
#define DRIVER_1_LED_TOTAL 46
#define DRIVER_2_LED_TOTAL 38
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
#define CKLED2001_CURRENT_TUNE \
{ 0xA0, 0xA0, 0x48, 0xA0, 0xA0, 0x48, 0xA0, 0xA0, 0x48, 0xA0, 0xA0, 0x48 }

View file

@ -17,13 +17,12 @@
#pragma once
/* LED Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110100
#define DRIVER_1_LED_TOTAL 84
#define LED_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_6CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_6CHANNEL
#define CKLED2001_CURRENT_TUNE \
{ 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 } // 250mA
// { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40 } // 127mA

View file

@ -32,7 +32,7 @@
#define DIP_SWITCH_MATRIX_GRID { {5,4} }
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -43,8 +43,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
/* turn off effects when suspended */
#define RGB_DISABLE_WHEN_USB_SUSPENDED

View file

@ -16,11 +16,6 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
/* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 46
#define DRIVER_2_LED_TOTAL 40

View file

@ -31,7 +31,7 @@
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -42,8 +42,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
#define CKLED2001_CURRENT_TUNE { 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A }
/* DIP switch */

View file

@ -20,7 +20,7 @@
// #define MATRIX_UNSELECT_DRIVE_HIGH
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -31,8 +31,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
/* Disable DIP switch in matrix data */
#define MATRIX_MASKED

View file

@ -20,7 +20,7 @@
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -31,8 +31,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
/* DIP switch */
#define DIP_SWITCH_MATRIX_GRID { {5, 4} }

View file

@ -17,7 +17,7 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 1
#define CKLED2001_DRIVER_COUNT 1
#define DRIVER_ADDR_1 0b1110111
/* Increase I2C speed to 1000 KHz */

View file

@ -26,7 +26,7 @@
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100

View file

@ -20,7 +20,7 @@
#define DIODE_DIRECTION ROW2COL
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100

View file

@ -17,7 +17,7 @@
#pragma once
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -28,8 +28,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define SCAN_PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
#define CKLED2001_CURRENT_TUNE { 0xFC, 0xFC, 0x70, 0xFC, 0xFC, 0x70, 0xFC, 0xFC, 0x70, 0xFC, 0xFC, 0x70 }
/* DIP switch */

View file

@ -20,7 +20,7 @@
// #define MATRIX_UNSELECT_DRIVE_HIGH
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define CKLED2001_DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
#define DRIVER_ADDR_2 0b1110100
@ -31,8 +31,7 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
#define CKLED2001_CURRENT_TUNE { 0xC4, 0xC4, 0x60, 0xC4, 0xC4, 0x60, 0xC4, 0xC4, 0x60, 0xC4, 0xC4, 0x60 }
/* DIP switch */