hi everybody. i am an electronics enthusiast. i have found the following code to make an arduino clock. the code is not compiling. found from http://www.instructables.com/id/Arduino-Real-Time-Clock-With-Large-7-segment-Displ/ as i have very little knowledge in programming, could somebody help me fix it? the code:
#include <Wire.h>
#include “RTClib.h”
RTC_DS1307 RTC;
// SLC in A5
// SDA in A4
void setup ()
{
// Serial.begin(9600);
Wire.begin();
RTC.begin();
if (! RTC.isrunning())
Serial.println(“RTC is NOT running!”);
// RTC.adjust(DateTime(DATE, TIME));
RTC.adjust(DateTime(2017, 1, 16, 13, 07, 00)); // Hier kun je de tijd instellen die je de RTC wilt geven
}
void loop ()
{
DateTime now = RTC.now(); // Met de seriele monitor kun je kijken of de RTC de juiste tijd overneemt. (Ctrl+Shift+M)
Serial.print(now.year(), DEC);
Serial.print(’/’);
Serial.print(now.month(), DEC);
Serial.print(’/’);
Serial.print(now.day(), DEC);
Serial.print(’ ‘);
Serial.print(now.hour(), DEC);
Serial.print(’:’);
Serial.print(now.minute(), DEC);
Serial.print(’:’);
Serial.print(now.second(), DEC);
Serial.println();
delay(1000);
}