LCD with I2C backpack from WIDE.HK
dear all,
i bought this display, can't going... sure hooked correctly (the first row of lcd lights up), , i2c adress correct. code provided
code: [select]
#include <wire.h>
#include <lcdi2c4bit.h>
byte x = 0;
byte data = 1;
byte c;
lcdi2c4bit lcd = lcdi2c4bit(0x27,4,20);
void setup()
{
wire.begin(); // join i2c bus (address optional master)
lcd.init();
lcd.clear();
lcd.cursorto(0,0);
lcd.printin("www.wide.hk");
lcd.cursorto(2,0);
lcd.printin("i2c 1602 lcd");
}
void loop()
{
lcd.backlight(true); delay(1000);
lcd.backlight(false); delay(1000);
}
the compiler says:
code: [select]
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:8:57: error: wconstants.h: no such file or directory
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:21: error: 'byte' not name type
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:29: error: variable or field 'setmcpreg' declared void
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:29: error: 'byte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:29: error: 'byte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:29: error: 'byte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:36: error: variable or field 'sendtolcd' declared void
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:36: error: 'byte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:36: error: 'byte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:49: error: variable or field 'writelcdbyte' declared void
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:49: error: 'byte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:49: error: 'byte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp: in member function 'void lcdi2c4bit::init()':
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:55: error: 'dataplusmask' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:56: error: 'setmcpreg' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:59: error: 'delay' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:60: error: 'sendtolcd' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:63: error: 'delaymicroseconds' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:67: error: 'writelcdbyte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp: in member function 'void lcdi2c4bit::backlight(bool)':
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:76: error: 'dataplusmask' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:78: error: 'setmcpreg' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp: in member function 'void lcdi2c4bit::print(int)':
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:83: error: 'dataplusmask' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:84: error: 'byte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:84: error: 'writelcdbyte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp: in member function 'void lcdi2c4bit::commandwrite(int)':
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:106: error: 'writelcdbyte' not declared in scope
..libraries\i2c_1602_2004lcd\lcdi2c4bit.cpp:107: error: 'delay' not declared in scope
it seems me library outdated. tried several other libraries controlling i2c lcd display no luck , not capable of rewriting library myself... have ideas or experience of these lcd displays sold wide.hk? thank you...
Arduino Forum > Using Arduino > Displays > LCD with I2C backpack from WIDE.HK
arduino
Comments
Post a Comment