I downloaded a library recommended on YouTube.Tried to compile and example sketch and all kinds of trouble with compiler errors. So I'm trying to remove the library. Error states that the *.h file is in multiple locations, which do not exist on my hard drives. I have deleted the offending libraries from my hard drive. I have gone into appdata and removed any temp cache files belonging to arduino, I have uninstalled arduino ide, gone through the previous steps, removed any and all registry values relating to arduino and shut down/ restarted my system, At this point there should be no trace of arduino or libraries from arduino. I reinstall the ide and then go to add/include libraries. The offending libraries still show up in the list. I'm pulling my hair out, please help???
It's quite possible that the library I downloaded was corrupted during the download, or missing pieces. I just need to get rid of it so I can move on.
Alex_Webster:
and then go to add/include libraries.
I don't know what you mean by "add/include libraries". There is no menu option of that name in the Arduino IDE. You need to be more precise.
Alex_Webster:
The offending libraries still show up in the list.
What libraries are you talking about?
There is a file named Arduino15 which may link the libraries to the ide with Sketch > Include Library.
You may wish to delete this file before loading a clean version of the ide. The download should create a new version.
Arduino15 includes preferences, and if the file is present, I think the download adds to this existing file, but does not completely replace it.
I'm assuming this file would be in the arduino installation folder in the programs(x86) folder, uninstalling the ide removes this folder. This information must be stored somewhere else. Even after uninstalling the ide and a fresh install I can see the library titles under sketch/include library. The library is not in the libraries folder and has not been added.
@pert.. I don't think the name of the library is relevant. I really need to find out how to get rid of it.
I'm assuming this file would be in the arduino installation folder in the programs(x86) folder,
No. In Windows, Arduino 15 is in C>Users>you> AppData >Local.
Thanks muchly!! Happy New Year!!
Nope. The preference file is a text file, doesn't list libraries. I'll have to get out that big ol' CNC jack hammer and keep drilling I s'pose. I'm sure that someone at arduino development knows the answer, but it's New Years so I will let it rest.
Alex_Webster:
I'm sure that someone at arduino development knows the answer
I'm sure I know the answer if you weren't so bound and determined to be vague. Well have fun figuring it out for yourself.
Really, what can I be more clear about? I'm not being vague.
Alex_Webster:
Really, what can I be more clear about? I'm not being vague.
What is the name of the file you are having trouble with?
What is the name of the library you downloaded?
Post a link to the place from which you downloaded it.
When the IDE says there are multiple copies it should list all the copies it has found. Copy and paste that message.
...R
A deeper detailed explanation...
I downloaded NewLiquidCrystal_1.3.5.zip from this link
https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
It was recommended and I think somehow it corrupted while downloading.
I moved the library files into the c:\programs(x86)\arduino\libraries folder.
I went into sketch/include libraries and added the library.
When I went to compile an example code that came with, I got errors from the compiler.
I deleted the files from the libraries folder. I downloaded a previous version of the library (Newliquidcrystal_1.3.2 and added it then I noticed that both libraries somehow are in the list. The first one doesn't exist anywhere on my computer. I need to get rid of it.
Error messages form the compiler now claim that the .h files exist in multiple locations.
I completely uninstalled arduino ide, deleted the related files in \user\appdata\ and reinstalled the ide.
It still lists the libraries in the contributed libraries list.
Please note: I have uninstalled the ide from the folder c:\programs(x86)\arduino and reinstalled the ide
in a new folder called c:\programs(x86)\arduino2. It still thinks the library files exist and is looking for them where there is no directory. Also still claiming that multiple librares were found for LiquidCrystal_I2C.h.
C:\Users\Alex\Documents\Arduino\LCD_test\LCD_test.ino:3:33: warning: invalid conversion from 'int' to 't_backlighPol' [-fpermissive]
LiquidCrystal_I2C lcd (0x27,20,4);
^
In file included from C:\Users\Alex\Documents\Arduino\LCD_test\LCD_test.ino:2:0:
C:\Users\Alex\Documents\Arduino\libraries\Newliquidcrystal_1.3.5/LiquidCrystal_I2C.h:53:4: note: initializing argument 3 of 'LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, t_backlighPol)'
LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t backlighPin, t_backlighPol pol);
^
C:\Users\Alex\Documents\Arduino\libraries\Newliquidcrystal_1.3.5/LiquidCrystal_I2C.h: In function 'void setup()':
C:\Users\Alex\Documents\Arduino\libraries\Newliquidcrystal_1.3.5/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private
int init();
^
LCD_test:6: error: within this context
lcd.init (); // LCD initialization
^
LCD_test:9: error: 'class LiquidCrystal_I2C' has no member named 'printstr'
lcd.printstr ("Welcome To"); // print the character "Welcome To"
^
LCD_test:11: error: 'class LiquidCrystal_I2C' has no member named 'printstr'
lcd.printstr ("www.alsrobot.cn"); // print the character "www.alsrobot.cn"
^
LCD_test:13: error: 'class LiquidCrystal_I2C' has no member named 'printstr'
lcd.printstr ("RobotBase!"); // print character "RobotBase!"
^
LCD_test:15: error: 'class LiquidCrystal_I2C' has no member named 'printstr'
lcd.printstr ("I LOVE ROBOT"); // print the character "I LOVE ROBOT"
^
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: C:\Users\Alex\Documents\Arduino\libraries\Newliquidcrystal_1.3.5
Not used: C:\Users\Alex\Documents\Arduino\libraries\NewliquidCrystal
Not used: C:\Users\Alex\Documents\Arduino\libraries\NewliquidCrystal
Not used: C:\Users\Alex\Documents\Arduino\libraries\NewliquidCrystal
Not used: C:\Users\Alex\Documents\Arduino\libraries\NewliquidCrystal
exit status 1
within this context
So from what I can see, the files don't exist in any arduino directory. They are not listed in a preference file in c"\user\me\appdata\local\arduino15 folder. They are not in the registry, I checked.
This is the code I'm trying to compile and the load to my arduino uno. Although it's not the code tat is the problem. I've tried to compile many example codes that came with the library and with my lcd display. Each one hits the same problem.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd (0x27,20,4);
void setup ()
{
lcd.init (); // LCD initialization
lcd.backlight ();
lcd.setCursor (5, 0); // move the cursor to 5,0
lcd.printstr ("Welcome To"); // print the character "Welcome To"
lcd.setCursor (2, 1); // Move the cursor to 2,1
lcd.printstr ("www.alsrobot.cn"); // print the character "www.alsrobot.cn"
lcd.setCursor (5, 2); // Set the cursor position 5,2
lcd.printstr ("RobotBase!"); // print character "RobotBase!"
lcd.setCursor (4, 3); // move the cursor to 4,3
lcd.printstr ("I LOVE ROBOT"); // print the character "I LOVE ROBOT"
}
void loop ()
{
}
Alex_Webster:
So from what I can see, the files don't exist in any arduino directory. They are not listed in a preference file in c"\user\me\appdata\local\arduino15 folder. They are not in the registry, I checked.
I don't use Windows so I don't think I can help further.
...R
Problem resolved.. Next time I know better.
Alex_Webster:
Problem resolved.. Next time I know better.
Please explain how you resolved it for the benefit of other readers.
...R
Alex_Webster:
This is the code I'm trying to compile and the load to my arduino uno. Although it's not the code tat is the problem.
Well, the code is/was part of the problem.
The other part of the problem is trying to use the wrong library and perhaps incorrect manual installation of the library.
The code you showed us is not for the library you said you were using
The error message you got was an error from compiling the NewLiquidCrystal library.
The code you showed us for the LiquidCrystal_I2C library which is available in the IDE library manager.
These are two very different libraries.
Both of these libraries have a LiquidCrystal_I2C class but they work differently and use different constructors.
I would suggest that you use my hd44780 library.
It is easily installed using the IDE library manager. Do not install it using a zip file.
You can read more about it on the github page: GitHub - duinoWitchery/hd44780: Extensible hd44780 LCD library
And the wiki: Home · duinoWitchery/hd44780 Wiki · GitHub
It offers a plug and play solution for LCDs with i2c backpacks.
No manual library install, and it auto detects everything else like i2c address and pin mappings.
The i/o class you want to use is hd44780_I2Cexp.
Run the included diagnostic sketch I2CexpDiag to make sure the library is properly communicating with the LCD.
-- bill