Fixes for recent i2c migrations (#14352)

This commit is contained in:
Joel Challis
2021-09-08 23:44:18 +01:00
committed by GitHub
parent 9c175f1801
commit 2e0659f7fd
4 changed files with 6 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
#include <util/delay.h>
/* I2C aliases and register addresses (see "mcp23018.md") */
#define I2C_ADDR 0b0100000
#define I2C_ADDR (0b0100000 << 1)
#define I2C_TIMEOUT 100
#define IODIRA 0x00 /* i/o direction register */
#define IODIRB 0x01