probably been asked a million times but I have spent a whole day trying to get this to work and 2 hours looking through this forum for an answer and got no were.
Trying to test a programme to display hello world on a 16 x 2 lcd but when I try to run the programme or verify I get the error message ' liquidcrystal_i2c does not have a type'. I have made sure the .h files are in the library's directory and in the same directory as the sketch file I am using. I have even tried different projects online which use a LCD and supply the scripts but all come back with the same error message.
What am I doing wrong? might sound obvious but I'm new to Arduino and programming please help
Thank you Don that solved that problem. I followed the instructions set up my library but now when I ask it verify I get the message 'Error compiling' any ideas?
really wish it was as simple as that Don, there is a dot between lcd and clear already. The project I'm trying to work on at the moment is the Receiver part of the Solar powered weather station by deba168 on instructables. I've been working on it all day and even the transmitter part is given me the same problems, I'm not a member of instructables so cant email directly to find answers.
From your first post, it looks like you are using an I2C LCD, and I believe that you still have a library problem
Which library have you downloaded for it? Where is it located?
Are there any other libraries for liquid crystal or liquid crystal i2c in either the user or program files library locations? They should be renamed and moved to a different folder until you sort this out.
I got the lcd library from the Arduino website. the only file I was having trouble finding after Don's last post was the one for the dht11 temp humidity sensor. Now I found a site that had the file I needed but somehow when I tried to add it to my library it has copied the library folder over a thousand times. This caused Arduino to crash so I attempted to uninstall Arduino and start again but the system will not let me delete the Arduino library's folder as it says the file names are too long, well it would be being repeated thousands of times.
So at the moment I don't have Arduino loaded onto my PC and cant until I find away to delete the folder named Arduino, library's, library's, library's, library's, library's, library's, library's, library's, library's, libr......(repeated a thousand times)....... library's, library's, library's, library's,dht11.h
if anybody knows how to delete this folder please get in touch pleeeeeeeeese
if anybody knows how to delete this folder please get in touch ...
You can probably do it from a command prompt using the RMDIR (remove directory) command. You would need the /s option to get all of the subdirectories.
I'm using a windows 8 machine which I have not had for long, don't even know were the command prompt is. Also I didn't understand the /s option totally new to programming, thought the arduino would be a good way to learn, so far total nightmare
Well I now think I know why I was having so much trouble with the programme. It seems that when I click on create library it does but it duplicates itself over and over. The first time this happened I was able to delete the folder using the method Don suggested. After reloading the Arduino software back on my computer and again selecting create library it once again created a million folders called library inside the library folder. This causes the software to crash because the file name is too long and it wont let me delete it even using the method Don gave, which worked the first time but not this time.
Has anybody got any idea why the Arduino programme does this and how do I stop it from happing again?
Are you following the procedure given in the library instructions linked in reply #2. Do you mean the automatic library installation with the path sketch>import library>add library?
You might try the manual installation procedure given in the library instructions linked in reply #2.
yes Cattledog that's it, if I click on add library it self replicates itself over and over again to the point were I cannot delete move copy the file because it is too big a file name to delete. I tried the CMD prompt and all the different ways given by friends and the internet on how to delete this file but nothing happened. I ended up having to reset my laptop back to the factory setting I was able to copy all my important stuff before I reset it.
I have just tried the same thing on an old Xp laptop and clicking on add library did the same thing. So until I find out why the Arduino programme does this I wont be loading it back on to my laptop.
Is that not what I was doing Paul_B by clicking on ADD LIBRARY ? I'm new to the whole Arduino and programming thing so please be patient with me I need abit more info than 'just load the library manually'
What I mean - and the way I have always done it - is to unpack (WinZip - the older unencumbered version or Windoze zip functionality or Archive Manager in Linux) the library into the libraries directory (with the IDE shut down, then restart it).
That is manually. Libraries live in named subdirectories, btw.
yeah that's what I was doing to start with but for some reason that did not add the subdirectories to my sketch so I tried clicking on 'add library'.
I've had to rebuild my laptop due to the self replicating 'Library' folder that just filled up the hard drive and despite all the advise from the forum and friends I was unable to delete the folder.
I'm back up and running but still having problems getting the subdirectories to load into my sketch. The book 'Getting started with Arduino' does not seem to mention it?