I think its my understanding thats lacking here. Let me see if what I am assuming is correct.
So the wiki for the RTC module indicates that the DS3231 default I2C address is 0x68. There is no reason this should be different and I have no other devices on the bus.
The DS3231 registers run from BIT0 to BIT7.
So if I want to read 'seconds' for instance am I right in understanding that I need to calculate the exact location by adding the I2C address (0x68) + the register address (00h) and then read 4 Bits?
I assume this then returns those 4 bits that then need to be converted into an integer.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes have pullup resistors on the I2C lines.
I think its my understanding thats lacking here. Let me see if what I am assuming is correct.
So the wiki for the RTC module indicates that the DS3231 default I2C address is 0x68. There is no reason this should be different and I have no other devices on the bus.
The DS3231 registers run from BIT0 to BIT7.
So if I want to read 'seconds' for instance am I right in understanding that I need to calculate the exact location by adding the I2C address (0x68) + the register address (00h) and then read 4 Bits?
I assume this then returns those 4 bits that then need to be converted into an integer.
1 Attachment