Add and use I2C address defines for ISSI LED drivers (#22008)
This commit is contained in:
@@ -38,17 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
|
||||
// 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
|
||||
// ADDR1 represents A1:A0 of the 7-bit address.
|
||||
// ADDR2 represents A3:A2 of the 7-bit address.
|
||||
// The result is: 0b101(ADDR2)(ADDR1)
|
||||
#define DRIVER_ADDR_1 0b1010000
|
||||
#define DRIVER_ADDR_1 IS31FL3733_I2C_ADDRESS_GND_GND
|
||||
#define IS31FL3733_DRIVER_COUNT 1
|
||||
#define RGB_MATRIX_LED_COUNT 64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user