Go Down

Topic: Ds1307 (RTC) (Read 1 time) previous topic - next topic

TTU.ABD

I'm sorry , my question may be stupid but I am a beginner and I want to write code before the arrival of the pieces because I must deliver project for the University at a specific time.

in library ds1307 for arduino , there function is written in the begining of code [   DS1307(SDA, SCL);   ]  , if I connect the two pins () of DS1307 to the analog pin 5,6 on arduino ,
do I write replacing [SDA,SCL] : {5,6} ?

zoomx

I believe that the library use A4 and A5 instead of A5 and A6.
On Arduino UNO these pin are replicated near to the AREF pin.
http://arduino.cc/en/Main/arduinoBoardUno

PaulS

Quote
if I connect the two pins () of DS1307 to the analog pin 5,6 on arduino ,
do I write replacing [SDA,SCL] : {5,6} ?

Not if you want to have any hope of it working. You need to specify the I2C pins of the Arduino (and only those pins).

TTU.ABD

Quote
You need to specify the I2C pins of the Arduino (and only those pins).

Thanx

Go Up