This is my first uC project, so I'm perhaps missing something, but I can't seem to figure out how wo write to the 0x00-0x03 registers on the DS1371.
From reading the data sheet, it seems like this should work:
void time_set(long t){
Wire.beginTransmission(104);
Wire.write(0x0); // control 0
Wire.write(0x0); // register 0
Wire.write(t);
Wire.endTransmission();
}
I'm either reading the data sheet incorrectly, or I'm missing something important on how Wire.write() works.
any hints?