Jetzt hab ichs gerafft!!!
Works!PHP-Code:
void ds1621_lesen(void)
{
i2c_start(DS1621_Write);
i2c_write(0xAA);
i2c_stop();
i2c_rep_start(DS1621_Read);
TempH = i2c_readAck();
TempL = i2c_readNak();
i2c_stop();
ret = (TempH * 1 + TempL /256); // <===Noch nicht gut!
}
DANKESCHÖN.
Lesezeichen