LiquidCrystal_I2C_Hangul n'est pas valide. Définition sur : 'Uncategorized'

HI

when I send the code I received this message
MY BORD IS ; arduino mega 2560
and I use it LCD display 2*16 with I2C "FC-113"

ATTENTION : La catégorie 'Display, Hangul' dans la bibliothèque LiquidCrystal_I2C_Hangul n'est pas valide. Définition sur : 'Uncategorized'

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

LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
  lcd.init();                      // initialize the lcd 
  lcd.init();
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(5,0);
  lcd.print("KHALIL");
  lcd.setCursor(5,1);
  lcd.print("BOUANZI");
   
}


void loop()
{
}

If you're using this LiquidCrystal_I2C library, then there is no init method. Use begin. And use it only once...

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

LiquidCrystal_I2C lcd(0x27, 20, 4); // set the LCD address to 0x27 for a 16 chars and 2 lines display

void setup()
{
  lcd.begin();
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(5, 0);
  lcd.print("KHALIL");
  lcd.setCursor(5, 1);
  lcd.print("BOUANZI");
}

void loop() { }

Have you verified the address of your LCD is really 0x27?

thank you for your reply Mr. lesept
now it's showing a new message

C:\Users\ONLY GAMERS\AppData\Local\Temp\Rar$DIa0.412\T14_SimpleMenuTutorial\T14_SimpleMenuTutorial.ino: In function 'void setup()':

T14_SimpleMenuTutorial:18:13: error: no matching function for call to 'LiquidCrystal_I2C::begin()'

lcd.begin();

^

In file included from C:\Users\ONLY GAMERS\AppData\Local\Temp\Rar$DIa0.412\T14_SimpleMenuTutorial\T14_SimpleMenuTutorial.ino:8:0:

C:\Users\ONLY GAMERS\Documents\Arduino\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:58:8: note: candidate: void LiquidCrystal_I2C::begin(uint8_t, uint8_t, uint8_t)

void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS );

^

C:\Users\ONLY GAMERS\Documents\Arduino\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:58:8: note: candidate expects 3 arguments, 0 provided

exit status 1
no matching function for call to 'LiquidCrystal_I2C::begin()'

about the address I use this method

It's ok for the address.
I don't understand why you get this error message. The example from the library does the same:

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

// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup()
{
	// initialize the LCD
	lcd.begin();
}

Can you please verify if you have the same example in your library's folder, called BlinkingCursor, and if the first lines are the same as above ?
Also, do you know the version of your library ? Does it appear in the library manager? If yes, can you tell me the information about it (post it as a picture, as you already did)?
There may exist another library with the same name...

hi professor

do you have a good version off Library
where can I find the Library in my computer

The library is in the 'library' folder in your standard 'Arduino' folder, the latter being in 'MyDocuments' or something similar. But it seems you also have one version of the library on your desktop (Bureau), try to erase that copy.

If you want to install it again, first erase it from the 'library' folder. Then go here and click "clone or download" and choose download zip.

Then unzip the downloaded archive, and move the folder to your 'library' folder. If the name of that new folder contains "master" or "-master", remove that part from the name.

Restart the Arduino IDE, and try again...
.
.
.
Good luck :slight_smile:

any other ideasv :o

I delete ide version I am used zip version

I delete all the library

same problem

any other ideas :o

Yes, try another library...

This one maybe, and it requires that you also install the streaming library which is quite cool to use anyways by itself (for quicker Serial.print programming).

HELP MEEEEEEEEEEE

Try my suggestion of answer #7, it's not that complex.

  • First install the libraries and try the example.
  • If it works, then adapt your code to make it compliant with the library: OK, I'll help you here. It should look like this
#include "Arduino.h"
#include "Wire.h"
#include "Printable.h"
#include "lcd_I2C.h"
#include "Streaming.h"

LCD_I2C lcd(0x27, 4, 20); // set the LCD address to 0x27 for a 20 chars and 4 lines display

void setup()
{
  lcd.begin();
  lcd.clear();
  lcd.backlight(true);
  lcd.setCursor(5, 0);
  lcd.print("KHALIL");
  lcd.setCursor(5, 1);
  lcd.print("BOUANZI");
}

void loop() { }

Remember the I2C pins are, depending on your board:

Board I2C / TWI pins
Uno, Ethernet A4 (SDA), A5 (SCL)
Mega2560 20 (SDA), 21 (SCL)
Leonardo 2 (SDA), 3 (SCL)
Due 20 (SDA), 21 (SCL), SDA1, SCL1