i2c how to set register in ds3231
Posted: Fri Aug 02, 2019 10:18 am
Hi everyone
I have read espressif's document about how to use i2c. I also read example and i know how to send one byte. But how can i send byte (slave address) then register address and finally value that i want to write into this register?
Slave address: 0xD0
Register address: 0x0E
Value: 0x0
I am using eclipse with esp-idf
I have read espressif's document about how to use i2c. I also read example and i know how to send one byte. But how can i send byte (slave address) then register address and finally value that i want to write into this register?
Slave address: 0xD0
Register address: 0x0E
Value: 0x0
I am using eclipse with esp-idf