#include <LiquidCrystal.h> // include a library headfile
// LiquidCrystal display with:
// rs on pin 10
// rw on pin 11
// enable on pin 12
// d4, d5, d6, d7 on pins 13, 14, 15, 16
LiquidCrystal lcd(10, 11, 12, 13, 14, 15, 16);
void setup()
{
lcd.clear();//clears the LCD and positions the cursor in the upper-left corner
lcd.print("hello, world!");// Print a message to the LCD.
lcd.setCursor(2,1); // set to the 3th column and 2nd row
lcd.print("Seeedstudio");// Print a message to the LCD.
}
void loop()
{
}
I’ve tried downloading a seeduino modified seeduino LiquidCrystal library but not working either pls help!
you also need to delete ‘applet’ directory if you have been used the original library.
Or direct delete the default LiquidCrystal library and put our LiquidCrystal library in Arduino-0018 libraries.
I renamed & zipped the original Arduino library, installed the modified library in /Applications/Arduino.app/Contents/Resources/Java/libraries, and compiled the example from Electronic Brick v1.1 manual:
[code]#include <LiquidCrystal.h> // include a library headfile
// LiquidCrystal display with:
// rs on pin 10
// rw on pin 11
// enable on pin 12
// d4, d5, d6, d7 on pins 13, 14, 15, 16
LiquidCrystal lcd(10, 11, 12, 13, 14, 15, 16);
void setup()
{
lcd.clear();//clears the LCD and positions the cursor in the upper-left corner
lcd.print(“hello, world!”);// Print a message to the LCD.
lcd.setCursor(2,1); // set to the 3th column and 2nd row
lcd.print(“Seeedstudio”);// Print a message to the LCD.
}
void loop()
{
}
[/code]
My ribbon cable is connected between BUS2 and the LCD. It illuminates with the first line consisting of (16) 5x8 pixel blocks and the second line is blank. The example code for the modified library produces the same result.
I had the same problem with Arduino 0018 on Mac OS X 10.6.4, Arduino LiquidCrystal library, Seeeduino Mega board, Electronic Brick Starter kit shield (using BUS2), and the LCD. I was able to work around it by using BUS1 and changing my program as follows:
[code]#include <LiquidCrystal.h> // include a library headfile
// LiquidCrystal display with:
// rs on pin 2
// rw on pin 3
// enable on pin 4
// d4, d5, d6, d7 on pins 5, 6, 7, 8
LiquidCrystal lcd(2, 3, 4, 5, 6, 7, 8);
void setup()
{
lcd.begin(16, 2);
lcd.clear();//clears the LCD and positions the cursor in the upper-left corner
lcd.print(“hello, world!”);// Print a message to the LCD.
lcd.setCursor(2,1); // set to the 3th column and 2nd row
lcd.print(“Seeedstudio”);// Print a message to the LCD.
}
void loop()
{
}[/code]
I’m not sure why BUS2 does not work…maybe it has to do with pin 13 functioning differently on the Mega v. older MCUs?
Hi,
I had same problem with “inverted space” in first line and text not showing up. I use Arduino Uno board with brick shield and LCD 1602 of the brick starter kit. Win XP and Arduino 0022. The problem is, that the example in the in the Seeedstudio documention seeedstudio.com/depot/images … Vol1.1.pdf
is wrong. The statement lcd.begin(16, 2) is missing and lcd.setCursor() was used wrongly, because numbering starts with 0 as it is the case most often in computer science.
How can we get managed to have the documentation changed, so it’ll be easier for the people following us?
A newbie observation to this would be that there is no D14 to D16 obviously for a normal Arduino (a normal shield respectively). See also in the attached pic ( from link seeedstudio.com/depot/images/product/BUS.jpg).
So how do you translate in code that you need to communicate with D10, D11, D12, D13 and A0, A1, A2, A3 respectively instead of D10 to D16?