lcd i2c problem

hi i am very new to all this, I am using ARDUINO UNO R3 ATmega328P ATmega16U2 and LCD ic2 16x2.
Have run a scanner and found address to be Ox3F, when i try to run the ic2 helloworld i get the following error mes.

Arduino: 1.8.4 (Windows XP), Board: "Arduino/Genuino Uno"

C:\Documents and Settings\KEVIN\My Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:35:26: fatal error: ../Wire/Wire.h: No such file or directory

#include <../Wire/Wire.h>

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Any help would be appreciated Daisy.

Try with #include <Wire.h>

Assuming the arduino IDE is installed correctly

Sorry do not understand this command is in the code.

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

#define BACKLIGHT_PIN 13

LiquidCrystal_I2C lcd(0x38); // Set the LCD I2C address

//LiquidCrystal_I2C lcd(0x38, BACKLIGHT_PIN, POSITIVE); // Set the LCD I2C address

// Creat a set of new characters
const uint8_t charBitmap[][8] = {
{ 0xc, 0x12, 0x12, 0xc, 0, 0, 0, 0 },
{ 0x6, 0x9, 0x9, 0x6, 0, 0, 0, 0 },
{ 0x0, 0x6, 0x9, 0x9, 0x6, 0, 0, 0x0 },
{ 0x0, 0xc, 0x12, 0x12, 0xc, 0, 0, 0x0 },
{ 0x0, 0x0, 0xc, 0x12, 0x12, 0xc, 0, 0x0 },
{ 0x0, 0x0, 0x6, 0x9, 0x9, 0x6, 0, 0x0 },
{ 0x0, 0x0, 0x0, 0x6, 0x9, 0x9, 0x6, 0x0 },
{ 0x0, 0x0, 0x0, 0xc, 0x12, 0x12, 0xc, 0x0 }

};

void setup()
{
int charBitmapSize = (sizeof(charBitmap ) / sizeof (charBitmap[0]));

// Switch on the backlight
pinMode ( BACKLIGHT_PIN, OUTPUT );
digitalWrite ( BACKLIGHT_PIN, HIGH );

lcd.begin(16,2); // initialize the lcd

for ( int i = 0; i < charBitmapSize; i++ )
{
lcd.createChar ( i, (uint8_t *)charBitmap );

  • }*
  • lcd.home (); // go home*
  • lcd.print("Hello, ARDUINO "); *
  • lcd.setCursor ( 0, 1 ); // go to the next line*
  • lcd.print (" FORUM - fm ");*
  • delay ( 1000 );*
    }
    void loop()
    {
  • lcd.home ();*
  • // Do a little animation by writing to the same location*
  • for ( int i = 0; i < 2; i++ )*
  • {*
  • for ( int j = 0; j < 16; j++ )*
  • {*
  • lcd.print (char(random(7)));*
  • }*
  • lcd.setCursor ( 0, 1 );*
  • }*
  • delay (200);*

your code turned into italics - it's unreadable if you don't read how to use the forum and post correctly

Please correct your post above and add code tags around your code:
[code]`` [color=blue]// your code is here[/color] ``[/code].

It should look like this:// your code is here
(Also press ctrl-T (PC) or cmd-T (Mac) in the IDE before copying to indent your code properly)


I think you did not install the NewliquidCrystal correctly most likely ? (did you check the last one ? it was updated about 3 months ago with the comment "I2CIO.cpp Fix path to Wire library"

I am sorry to have troubled you.
Am even more confused then i was how do some thing so simple turn out to be so difficult
I give up.
Many thanks Daisy.

your lcd library is looking for the wire library

C:\Documents and Settings\KEVIN\My Documents\Arduino\libraries\LiquidCrystal\I2CIO.cpp:35:26: fatal error: ../Wire/Wire.h: No such file or directory

#include <../Wire/Wire.h>

it expects to find a folder called wire in the directory of

C:\Documents and Settings\KEVIN\My Documents\Arduino\libraries\wire

#include <../Wire/Wire.h>

inside that folder it expects to find the wire files including the one called wire.h

find your wire folder library then copy it to that location or down load a wire library and install it in that location.

find your wire folder library then copy it to that location or down load a wire library and install it in that location.

It would, of course, be easier to stop using an antiquated LiquidCrystal library.

the main problem turned out to be the contrast adjustment when this was aj Hello World appeared
how or why i do not know?
Many Thanks for your help.

the main problem turned out to be the contrast adjustment when this was aj Hello World appeared
how or why i do not know?

You really need to step back a bit and think this through. This will help develop your problem solving skills. Your learning goal is to explain to yourself, and us, the how and the why your sketch started to work.

First, you had a software problem with a library as reported by the compiler. This did not fix itself. Did you change computers? Did you download a new library? Did you upgrade the ide version and a new library came with it?

With the library error, the contrast could have been perfect and you would never have gotten "Hello World" to show.

Once you had the correct library, the contrast became a second issue.