Smart Home Automation Forum
DS1307 RTC - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25)
+--- Thread: DS1307 RTC (/showthread.php?tid=2675)

Pages: 1 2


RE: DS1307 RTC - admin - 04-09-2023

yes, you should set i2c pins first step, then your program code will use that setting as default. here is photo, just do as photo.
   


RE: DS1307 RTC - Olsen@HuaHin - 04-10-2023

Thank you for the clarification.
It means that I don't need to define SDA & SCL in my sketch, correct??

I see that SS in your explanation below SDA & SCL also use i2c pin 5, is not a conflict as my sketch don't find the RTC module connected.


RE: DS1307 RTC - admin - 04-10-2023

It means that I don't need to define SDA & SCL in my sketch, correct?? yes, just define in "pins_arduino.h".


RE: DS1307 RTC - Olsen@HuaHin - 04-10-2023

What about pin 5 used twice, both the SCL and below in SS in the "pins_arduini.h"

Is that not a conflict?


RE: DS1307 RTC - admin - 04-10-2023

yes, need use two different, i just tell you which two pins for I2C need preset.


RE: DS1307 RTC - Olsen@HuaHin - 04-10-2023

(04-10-2023, 04:29 AM)admin Wrote: yes, need use two different, i just tell you which two pins for I2C need preset.

What pin to use here instead of pin 5


RE: DS1307 RTC - admin - 04-10-2023

A16 board, not use SPI bus, you can delete it or write any other GPIO number.