Example: Reading the DS3231 realtime clock - ozarchie/BlueBasic GitHub Wiki
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