I have a problem in which every time I use any script to show through my lcd, the panel only shows the first letter of every statement that is printed. For example, with the code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // run ic2_scanner sketch and get the IC2 address, which is 0x27 in my case
void setup()
{
lcd.init(); // initialize the lcd
// set cursor to first line
lcd.setCursor(0, 0);
// Print a message to the LCD.
lcd.backlight();
lcd.print("Congradulations!");
// set cursor to 2nd line
lcd.setCursor(0, 1);
lcd.print("Hello world");
}
void loop()
{
}
How can I solve this?
Welcome to the forum. Did you read the "How to use this forum" sticky at the the top of this forum section. http://forum.arduino.cc/index.php?topic=149018.0
On of the points talks about how to properly post your code, and another on how to do some research before asking a question. There is a search box at the top right of the forum web page. Try entering "i2c lcd only shows first character on a line" or "led only shows first letter".
It's quite rare that you will be bringing a new issue to the forum, and learning how to phrase your search questions is important.
How can I solve this?
By looking through some of the dozens of previous posts dealing with this problem.
Use cattledog's hints to find them.
Don