Merge branch 'master' into develop

This commit is contained in:
Joshua Diamond
2021-02-14 20:26:22 -05:00
14 changed files with 24 additions and 25 deletions

View File

@@ -45,7 +45,7 @@
*/
#define LED_DRIVER_ADDR_1 0b1110100
#define LED_DRIVER_COUNT 1
#define LED_DRIVER_LED_COUNT 3
#define DRIVER_LED_TOTAL 3
/* Set 0 if debouncing isn't needed
*/

View File

@@ -25,7 +25,7 @@ void init_fallacy_leds(void) {
i2c_init();
IS31FL3731_init(LED_DRIVER_ADDR_1);
for (int i = 0; i < LED_DRIVER_LED_COUNT; i++) {
for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
IS31FL3731_set_led_control_register(i, true);
}
@@ -54,7 +54,7 @@ void set_fallacy_led(int index, bool state) {
/* define LED matrix
*/
const is31_led g_is31_leds[LED_DRIVER_LED_COUNT] = {
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
{0, C1_1},
{0, C2_1},
{0, C3_1},