gobot
gobot copied to clipboard
[I2C] Driver for RTC DS3231
Hi guys,
Right now I'm working on small IOT that depends on real time clock, so I'm using DS3231 because its cheap and quite accurate. However, I see Gobot doesn't have the driver for DS3231. So my questions are :
- Is it correct that gobot doesn't have any driver for RTC, or my search-fu is bad ?
- Are there any documentation on creating a new driver, or maybe porting the existing C library to Go ? If yes, I'm interested on creating the driver for it.
Thank you.
Hello @RadhiFadlillah thanks for your interest.
I would take a look at https://github.com/hybridgroup/gobot/blob/master/drivers/i2c/bmp180_driver.go and the associated test file https://github.com/hybridgroup/gobot/blob/master/drivers/i2c/bmp180_driver_test.go as an example of how to create a new i2c Driver.
Also make sure to check out our contribution guide https://github.com/hybridgroup/gobot/blob/master/CONTRIBUTING.md
Thank you.