From e7eeeb0d4e825a175c67cd1c0256c91362517ebb Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 18 Apr 2007 23:00:05 +0000 Subject: Entfernungssensoren in Ordnung gebracht, Hindernisumfahrung implementiert. --- i2c.cpp | 78 +++++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 42 insertions(+), 36 deletions(-) (limited to 'i2c.cpp') diff --git a/i2c.cpp b/i2c.cpp index 61450fa..39b6b28 100644 --- a/i2c.cpp +++ b/i2c.cpp @@ -1,4 +1,5 @@ #include "i2c.h" +#include "avr.h" #include @@ -9,41 +10,43 @@ static void I2CStop(); static bool I2CStartSend(uint8_t addr) { - TWCR = (1<