Looking for Grove RTC example code written in C language

Hello,



I have got a Pmod grove RTC which I hoped to be able to use it the same way I have been using my Pmod Grove IMU (using the example C code that is provided <LINK_TEXT text=“https://github.com/Xilinx/PYNQ/tree/mas … q/lib/pmod”>https://github.com/Xilinx/PYNQ/tree/master/pynq/lib/pmod</LINK_TEXT> on github), however I noticed there is no such example code for the Grove RTC. I am aware of the arduino and python scripts that are available on Grove RTC Webpage (http://wiki.seeedstudio.com/Grove-RTC/), but due to some limitations I need to use it the same way I am using Grove IMU device. Does anybody know if there is such example code written in C language for this device out there that I can use? It seems to be a simple I2C device, however I have not found any library for it yet. Any help is appreciated.



Thanks,

Mahdi

Hello,

I’m sorry for not having such code. I suggest you to refer to STM32 or C51 code of ds1307 like https://github.com/ppkt/stm32f4-ds1307.

I hope the information can help.

Good Luck