gobot icon indicating copy to clipboard operation
gobot copied to clipboard

[I2C] Driver for RTC DS3231

Open RadhiFadlillah opened this issue 5 years ago • 1 comments

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.

RadhiFadlillah avatar Jul 06 '18 09:07 RadhiFadlillah

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.

deadprogram avatar Jul 07 '18 09:07 deadprogram