Skip to content

Commit 3167e46

Browse files
committed
pull-up SPI lines
1 parent eafdb73 commit 3167e46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/i2c.c

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ void i2cInit(void)
4040
TWSR = 0; // prescaler = 1 (TWPS1 = 0, TWPS0 = 0)
4141
TWBR = (((uint32_t)F_CPU / ((uint32_t)(FF_I2C_MASTER_SPEED) * 1000)) - 16) / (2 * 1);
4242

43+
PIN_PULLUP_ON(_A4);
44+
PIN_PULLUP_ON(_A5);
45+
4346
sInitDone = true;
4447
}
4548
}

0 commit comments

Comments
 (0)