Hi and thank You for Your work.
I feel comfortable with English even if Swedish is my native language. However I suffer from a Medical condition that makes it hard for me to handle large amount of information. Swedish or English, it is the same bad.
I managed to download a hd44780 library and tested compiling. It looks like the hd44780 assumes a LiquidCrystal_I2C library to exist. That was my initial question, how to get hold of the I2C-lib.
I tried to find a hd44780.h file to read the names of the functions, init, write etc. but Win10 does not solve that issue. I have commented out some lines in my early test scetch. Arduino IDE finds the lib but I can not find that lib using file manager. My hope was to read the .H-file...
First the beginning of the sketch, then the error report.
//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h>
#include <hd44780.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(3,0);
lcd.print("Hello, world!");
lcd.setCursor(2,1);
lcd.print("Ywrobot Arduino!");
lcd.setCursor(0,2);
lcd.print("Arduino LCM IIC 2004");
lcd.setCursor(2,3);
lcd.print("Power By Ec-yuan!");
}
void loop()
{
}
Build options changed, rebuilding all
C:\Users\User\Downloads\Arduino LCD test code\LiquidCrystal_I2C2004V1\examples\HelloWorld\HelloWorld.ino: In function 'void setup()':
HelloWorld:14: error: 'lcd' was not declared in this scope
lcd.init(); // initialize the lcd
^
exit status 1
'lcd' was not declared in this scope
Regards,
Stefan