Loading...
Pages: [1]   Go Down
Author Topic: Ds1307 (RTC)  (Read 752 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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} ?
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 112
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 312
Posts: 35483
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Print
 
Jump to: