Hi all,
I have a problem with the Electronic Brick Chassis:
I have connected the Electronic Brick Chassis with an arduino mega; I want to use a LCD with the shield but I’m facing a problem (using the BUS2):
My code is:
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(10,11,12,13,14,15,16);
void setup() {
// set up the LCD’s number of rows and columns:
lcd.begin(16, 2);
}
void loop() {
lcd.clear();
lcd.print(“Hello Word”);
lcd.setCursor(2,1);
lcd.print(‘hi all’);
lcd.display();
// Turn on the display:
delay(100);
}
I cannot post anything to the LCD. Is it a problem with the connectivity (mega with shield)?
I solve the problem. With the arduino mega is:
#include <LiquidCrystal.h> // include a library headfile
LiquidCrystal lcd(10,11,12,13, A0, A1, A2);/// the //LiquidCrystal lcd(10, 11, 12, 13, 14, 15, 16); is totally wrong
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()
{
}
Hi,Dear
So great! May i upload your program to our wiki ? And could you add your Resourse? Any attention or contribution should be much appreciated.
Welcome to show more creative posts.
Thanks a lot.
Best Regards
Jacket
SoftwareSerial.zip (8.71 KB)
SerialLCD.zip (13.2 KB)