added code for DS3231 (still unmodified)