What is the easiest way to mount DS1307 to ethernet shield?
I tried to do this: https://learn.adafruit.com/ds1307-real-time-clock-breakout-board-kit/wiring-it-up
but my program just freezes when I try to read data from RTC. Is there any other ways to do it?
Code looks like this:
const int RTCpin2 = 2;
const int RTCpin3 = 3;
void setup() {
pinMode(RTCpin2, OUTPUT);
pinMode(RTCpin3, OUTPUT);
analogWrite(RTCpin2, LOW);
analogWrite(RTCpin3, HIGH);
}
void loop() {
// process RTC time
}