unsigned char I2C_DS1803_SendByte(signed char myVolume)//char myByte)
{
StartI2C(); //sends start bits
PORTD =WriteI2C(0b01010000);// 0101 + address
AckI2C();
result =WriteI2C(0b10101111); // command: write to both potentiometers
result =WriteI2C(myVolume);
AckI2C();
return ReadI2C();
StopI2C();
}
The above code is not working, anyone know why?