Extra TWI disable code. Not used yet.

This commit is contained in:
Alex Voinea 2022-02-17 00:05:31 +01:00
parent 6351d29d70
commit 0172cbdf8b

View File

@ -45,6 +45,9 @@ void twi_init(void)
void twi_disable(void) void twi_disable(void)
{ {
// disable TWI hardware.
TWCR = 0;
// deactivate internal pullups for twi. // deactivate internal pullups for twi.
WRITE(SDA_PIN, 0); WRITE(SDA_PIN, 0);
WRITE(SCL_PIN, 0); WRITE(SCL_PIN, 0);