### Solved - wire.h error on Arduino 1.0 ###

The following piece of code compiles fine on Arduino 23, however throws up a specific error on Arudino 1.0
The error "Call of Overloaded 'write(int)' is ambiguous" is thrown for the line "Wire.write(0);"
Can someone throw some light?

void setup()
{
  Serial.begin(9600);
  Wire.begin(i2c_da);
//Serial.println("1");
  delay(500);

  Wire.beginTransmission(i2c_da);
  Wire.write(0);
  Wire.write(0x57);  // sec = 57
  Wire.write(0x53);  // min = 59
  Wire.write(0x56);  // hour = 11
  Wire.write(0x05);  // day = 5
  Wire.write(0x10);  // date = 31 
  Wire.write(0x12);  // month = 12
  Wire.write(0x10); // year = 10
  Wire.endTransmission();  
  //Serial.println("2");

}

Cheers,
Pracas

You probably have to typecast it, untested, but something like:

  Wire.write((byte) 0x57);  // sec = 57

@Nick... Yes.. thats what i did and it worked...