Most of the learning is by way of copy pasting others' code shamelessly.
For last three days, I am trying to get ds3231 talk to esp8266.
I am coding on OsX 10.9, gcc toolchain, espressif SDK 1.2.0.
Using Richard Burton's exquisite driver for ds3231 and espressif's i2c_master driver, I initialised i2c_master_gpio_init in my user_init.
I am using gpio4 (SCL) and gpio5 (SDA) on esp-07, considering silk-mask on module has swapped 4<->5 (confirmed by lua code).
The output I get from getTime (hh:mm:ss, dd-mm-yy) is strange..-> command 6 - RTC
-> command 6 - RTC
-> Time: 37:165:93, 165-24-265
-> command 6 - RTC
-> Time: 37:165:93, 165-24-265
-> command 6 - RTC
-> Time: 37:165:93, 165-24-265
-> command 6 - RTC
-> Time: 37:165:105, 165-24-265
-> command 6 - RTC
-> Time: 37:165:43, 165-24-265
-> command 6 - RTC
-> Time: 37:165:41, 165-24-265
I have confirmed time setting and getting in lua code using same pins on the module-it works like charm.
Can anyone help me in solving the problem.Statistics: Posted by mojhggn — Wed Jul 22, 2015 10:22 am
]]>