Skip to content

Commit

Permalink
#464 Updated i2c address for active marker deck
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Aug 29, 2019
1 parent 16683d9 commit ddfa840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deck/drivers/src/activeMarkerDeck.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static bool isInit = false;
static uint8_t currentId[LED_COUNT] = {0xff, 0xff, 0xff, 0xff};
static uint8_t requestedId[LED_COUNT] = {1, 3, 4, 2}; // 1 to 4, clockwise

#define DECK_I2C_ADDRESS 22
#define DECK_I2C_ADDRESS 0x2E

static xTimerHandle timer;

Expand Down Expand Up @@ -69,7 +69,7 @@ static void timerHandler(xTimerHandle timer) {

static void writeToDeck(const uint8_t led, const uint8_t id) {
uint8_t buf[] = {led, id};
bool status = i2cdevWrite(I2C1_DEV, DECK_I2C_ADDRESS, sizeof(buf), buf);
i2cdevWrite(I2C1_DEV, DECK_I2C_ADDRESS, sizeof(buf), buf);
}


Expand Down

0 comments on commit ddfa840

Please sign in to comment.