Go Down

Topic: sainsmart i2c lcd library (Read 25 times) previous topic - next topic

hello guys ,

i have a problem

i want to use a lcd display from sainsmart , i have used the new crystal library but when i want to compile .....

//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#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(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()
{


ERROR:


In file included from C:\Users\Simon\Documents\Arduino\libraries\fmalpartida-new-liquidcrystal-4ab8294150b5/LiquidCrystal_I2C.h:35:0,
                 from HelloWorld.ino:5:
C:\Users\Simon\Documents\Arduino\libraries\fmalpartida-new-liquidcrystal-4ab8294150b5/LCD.h:421:44: error: 'prog_uchar' does not name a type
    void createChar(uint8_t location, const prog_uchar charmap[]);
                                            ^
C:\Users\Simon\Documents\Arduino\libraries\fmalpartida-new-liquidcrystal-4ab8294150b5/LCD.h:421:63: error: ISO C++ forbids declaration of 'charmap' with no type [-fpermissive]
    void createChar(uint8_t location, const prog_uchar charmap[]);
                                                               ^
In file included from HelloWorld.ino:5:0:
C:\Users\Simon\Documents\Arduino\libraries\fmalpartida-new-liquidcrystal-4ab8294150b5/LiquidCrystal_I2C.h: In function 'void setup()':
C:\Users\Simon\Documents\Arduino\libraries\fmalpartida-new-liquidcrystal-4ab8294150b5/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private
    int  init();
         ^
HelloWorld.ino:11:12: error: within this context
In file included from HelloWorld.ino:5:0:
C:\Users\Simon\Documents\Arduino\libraries\fmalpartida-new-liquidcrystal-4ab8294150b5/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private
    int  init();
         ^
HelloWorld.ino:12:12: error: within this context
Error compiling.

now only that :


In file included from Komplette_Programmierung_Mit_LED.cpp:5:
C:\Users\Simon\Downloads\arduino-1.0-windows\arduino-1.0\libraries\LiquidCrystalI2C/LiquidCrystal_I2C.h:80: error: conflicting return type specified for 'virtual void LiquidCrystal_I2C::write(uint8_t)'
C:\Users\Simon\Downloads\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy