I have been trying to get my DS1307 RTC breakout board to run the test code supplied by the tutorial on this site to no avail.
( http://www.ladyada.net/learn/breakoutpl ... 07rtc.html )
After downloading the required library I put them in
C:\Users\Manmeer\Documents\Arduino\libraries\RTClib (hmm should libraries be a capital L?)
-in this folder I have DS1307.cpp and DS1307.h
like it states
"For the RTC library, we'll be using a fork of JeeLab's excellent RTC library RTClib - a library for getting and setting time from a DS1307 (originally written by JeeLab, our version is slightly different so please only use ours to make sure its compatible!) - download the .zip by clicking on Download Source (top right) and rename the uncompressed folder RTClib Then install it in your Arduino directory in a folder called RTClib"
& in the sketch
#include <Wire.h>
#include "RTClib.h"
Doing this throws me the error that
C:\Users\Manmeer\Documents\Arduino\libraries\RTClib\DS1307.cpp:6:20: error: RTClib.h: No such file or directory
Which ok fine maybe there was a typo on the tutorial ill rename the header file to RTClib instead of DS1307 along with the cpp file only to get this error:
testing.cpp:4:20: error: DS1307.h: No such file or directory
-testing is the name of the sketch which is located at
C:\Users\Manmeer\Documents\Arduino\Components\DS1307
-i made the components folder and DS1307
WHY?! WHY am I getting these errors? Why is arduino giving me the run around =(
Directory Errors
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88037
- Joined: Sat Feb 07, 2009 10:11 am
Re: Directory Errors
Are you sure you got the files from the link on the project page? https://github.com/adafruit/RTClib
I just checked it and the two files in the library are named RTCLib.cpp and RTCLib.h.
I just checked it and the two files in the library are named RTCLib.cpp and RTCLib.h.
-
- Posts: 1645
- Joined: Sat Nov 10, 2007 12:59 am
Re: Directory Errors
since arduino-0017 libraries should be installed in your sketchbook.
-
- Posts: 14
- Joined: Sun Feb 02, 2014 7:43 pm
Re: Directory Errors
Hi,
You should have a look at these Arduino Projects. In this list they have given a Project on DS1307 in which they have interfaced Arduino with RTC and have designed a digital Clock.
Thanks.
You should have a look at these Arduino Projects. In this list they have given a Project on DS1307 in which they have interfaced Arduino with RTC and have designed a digital Clock.
Thanks.
Please be positive and constructive with your questions and comments.