#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x20,16,2); // set the LCD address to 0x20 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");
}
void loop()
{
}
In file included from HelloWorld.pde:3:
C:\arduino-1.0.3\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:81: error: conflicting return type specified for 'virtual void LiquidCrystal_I2C::write(uint8_t)'
C:\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
In file included from HelloWorld.pde:3:
C:\arduino-1.0.3\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:81: error: conflicting return type specified for 'virtual void LiquidCrystal_I2C::write(uint8_t)'
C:\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
You have several issues. First, user downloaded libraries do NOT go in the core library folder. Doing that causes all kinds of issues.
The pde extension is for pre-1.0 versions of the IDE. You appear to be using one with post-1.0. Why?
"You have several issues. First, user downloaded libraries do NOT go in the core library folder. Doing that causes all kinds of issues.
The pde extension is for pre-1.0 versions of the IDE. You appear to be using one with post-1.0. Why?"
ok i read that was where i should put them and i was trying with both 1.03 and 0023
and have same problems
so where should LiquidCrystall_I2C go?
should i redownload arduino 1.03 and start over?
Where did you read that? Wherever it was, it is wrong.
In the folder where you store your sketches (C:\Users\PaulS\Documents\Arduino in my case) there is a libraries folder. That is where user downloaded libraries go. If there is not a libraries folder, create one.
so where should LiquidCrystall_I2C go?
See above.
should i redownload arduino 1.03 and start over?
No. Just delete any user-downloaded libraries you have added to the core library folder.
so should i ever put anything in the arduino folder or always use the arduino folder in the documents folder?
It's easier to understand and answer this question if you follow the Arduino installation guidelines, and use Arduino as the name of the sketch folder, and arduino-xxxx as the name of the version-specific installation directory for the Arduino code.
Then, the question is "so, should I ever put anything in the arduino-xxxx folder...", and the answer is generally no. There are exceptions, as always, but when they arise, you'll know it, you'll know enough to know that it is an exception, and you will be confident enough to do it (and to deal with the situation when you screw things up). For instance, if you are creating a new arduino-ish board, you need to add stuff to the core folder to make that board known to the IDE. Are you likely to do that as a newbie? Not hardly. By the time that you feel that none of the existing Arduino boards exactly fit your needs, you'll know what to add, where, to safely modify the installation.
or always use the arduino folder in the documents folder?