From 554d78c9c73731705ab536e009ef47760dd2df3f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 9 Jan 2016 21:58:53 +0100 Subject: move software I2C implementation to ATTiny --- commandline/i2cdetect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commandline/i2cdetect.c') diff --git a/commandline/i2cdetect.c b/commandline/i2cdetect.c index 88e5d2e..341900f 100644 --- a/commandline/i2cdetect.c +++ b/commandline/i2cdetect.c @@ -24,9 +24,9 @@ int main(int argc, char **argv) } - i2c_start(); + i2c_hw_start(); - if (i2c_tx_byte(i2cid)) + if (i2c_hw_tx_byte(i2cid)) printf(" %02x", id); else fputs(" --", stdout); @@ -35,7 +35,7 @@ int main(int argc, char **argv) fputs("\n", stdout); - i2c_stop(); + i2c_hw_stop(); i2c_deinit(); return 0; } -- cgit v1.2.3