hybridgroup / gobot

Golang framework for robotics, drones, and the Internet of Things (IoT)
https://gobot.io
Other
8.82k stars 1.04k forks source link

[I2C] Driver for RTC DS3231 #580

Open RadhiFadlillah opened 6 years ago

RadhiFadlillah commented 6 years ago

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 :

Thank you.

deadprogram commented 6 years ago

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.