Skip to content

Example: Reading the DS3231 realtime clock

aanon4 edited this page Sep 10, 2014 · 1 revision
5 //
6 // "Simple I2C to DS3231 RTC chip test"
7 //
20 I2C MASTER P0(4) P0(7)
25 REM "Set address pointer to 0 then read the first byte back - the BCD seconds"
30 I2C WRITE 0XD0, 0X00, READ D
35 REM "And print"
40 PRINT D
Clone this wiki locally