Implement the write LED driver protocol command.

This commit is contained in:
László Monda
2016-09-27 02:03:43 +02:00
parent 7855fa3f87
commit b519cd412d
3 changed files with 20 additions and 3 deletions

View File

@@ -5,11 +5,10 @@
#define I2C_ADDRESS_LEFT_KEYBOARD_HALF 8
// IS31FL3731 LED drivers range from 0x74 to 0x77
#define I2C_ADDRESS_LED_DRIVER_LEFT 0b1110100
#define I2C_ADDRESS_LED_DRIVER_RIGHT 0b1110111
#define IS_I2C_LED_DRIVER_ADDRESS (address) \
(I2C_ADDRESS_LED_DRIVER_LEFT <= address && address <= I2C_ADDRESS_LED_DRIVER_RIGHT)
#define IS_I2C_LED_DRIVER_ADDRESS(address) \
(I2C_ADDRESS_LED_DRIVER_LEFT <= (address) && (address) <= I2C_ADDRESS_LED_DRIVER_RIGHT)
#endif