Pages: [1]   Go Down
Author Topic: Ds1307 (RTC)  (Read 1622 times)
0 Members and 1 Guest are viewing this topic.
jordan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 56
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
Sr. Member
****
Karma: 3
Posts: 466
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
Online Online
Brattain Member
*****
Karma: 631
Posts: 50086
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

jordan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 56
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
Jump to: