Forum >Libraries for LCD I2C module DFR0063
Libraries for LCD I2C module DFR0063

I run my IDE version 1.0.5 on a Windows XP desktop machine. My CPU board is the Arduino UNO R3. I have tested my setup by compiling and running other cpp files but when I try to compile the example Hello World and Blink Backlight sketch which uses the LCD I2C interface I get errors:
Blink_backlight:9: error 'LiquidCrystal_I2C' does not name a type
Blink_backlight.ino: in function void setup()':
Blink_backlight:13: error: 'lcd' was not declared in this scope
Blink_backlight.ino: in function void loop()':
Blink_backlight:23: error: 'lcd' was not declared in this scope
I get the same errors whether or not I include the header files <wire.h> and <LiquidCrystal_I2C.h>. This seems to indicate to me that either I have the wrong header files or I have them in the wrong folder.
Can you advise me where to get the latest libraries for the DFR0063 and where they should be placed on my system?
RodHarper
Blink_backlight:9: error 'LiquidCrystal_I2C' does not name a type
Blink_backlight.ino: in function void setup()':
Blink_backlight:13: error: 'lcd' was not declared in this scope
Blink_backlight.ino: in function void loop()':
Blink_backlight:23: error: 'lcd' was not declared in this scope
I get the same errors whether or not I include the header files <wire.h> and <LiquidCrystal_I2C.h>. This seems to indicate to me that either I have the wrong header files or I have them in the wrong folder.
Can you advise me where to get the latest libraries for the DFR0063 and where they should be placed on my system?
RodHarper
2013-08-20 18:44:29 Hi, Hans
I have checked the code, and the address "0x27" is not default one.You can get it on wiki.
A2 A1 A0 Address
0 0 0 0x20
0 0 1 0x21
0 1 0 0x22
0 1 1 0x23
1 0 0 0x24
1 0 1 0x25
1 1 0 0x26
1 1 1 0x27
0: The Jumper Cap is connected
1: The Jumper Cap is disconnected
The default address is 0x20. All the jumper caps will be connected from the factory.
There are two ways to solve it .One is change the code address to default one(0x20),and connect all jumper cap.
The other is that all the jumper caps should be disconnected,and you need not change code.
Grey.CC
I have checked the code, and the address "0x27" is not default one.You can get it on wiki.
A2 A1 A0 Address
0 0 0 0x20
0 0 1 0x21
0 1 0 0x22
0 1 1 0x23
1 0 0 0x24
1 0 1 0x25
1 1 0 0x26
1 1 1 0x27
0: The Jumper Cap is connected
1: The Jumper Cap is disconnected
The default address is 0x20. All the jumper caps will be connected from the factory.
There are two ways to solve it .One is change the code address to default one(0x20),and connect all jumper cap.
The other is that all the jumper caps should be disconnected,and you need not change code.

2013-08-20 12:07:56 I have a related question. Well, in my case 1.0.5 does not find any fault, however, the LCD does not display any text. I have tried it with two Romeos V2 (using the dedicated I2C pins) and with two I2C LCDs (DFR0063), thus it can hardly be hardware malfunction. To be on the safe side, I even used the same code that Hector placed on this board a long time ago (see below), but nothing. I also tried other codes. Has it to do with the fact that Romeo V2 is a Leonardo or something with the 3 connectors on the backpack (A0, A1, A2)?
Here Hector's code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 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()
{
lcd.backlight();
delay (2000);
lcd.noBacklight();
delay (2000);
}
Hans
Here Hector's code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 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()
{
lcd.backlight();
delay (2000);
lcd.noBacklight();
delay (2000);
}

2013-08-09 20:19:09 Hi, RodHarper
"'LiquidCrystal_I2C' does not name a type" means that the library is not loaded, and can't find the function..
You can find the library on WIKI.,and download here
https://www.dfrobot.com/wiki/index.php/I ... :_DFR0063)
When you have downloaded the library, move the unzip folder “LiquidCrystal_I2C” to your arduino libraries.(where you install your arduino, there is a folder named"libraries")
and you can try again
Grey.CC
"'LiquidCrystal_I2C' does not name a type" means that the library is not loaded, and can't find the function..
You can find the library on WIKI.,and download here
https://www.dfrobot.com/wiki/index.php/I ... :_DFR0063)
When you have downloaded the library, move the unzip folder “LiquidCrystal_I2C” to your arduino libraries.(where you install your arduino, there is a folder named"libraries")
and you can try again

