... Setdate ist noch nicht ok. So sollte es sein:
Aus Getdatetime: müssen die Schreibbefehle wieder raus.Code:Setdate: _day = Makebcd(_day) : _month = Makebcd(_month) : _year = Makebcd(_year) I2cstart ' Generate start code I2cwbyte Ds1307w ' send address I2cwbyte 3 ' starting address in 1307 I2cwbyte Weekday ' Weekday I2cwbyte _day ' Send Data to SECONDS I2cwbyte _month ' MINUTES I2cwbyte _year ' Hours I2cstop Return
Lesezeichen