Forum >2x16 LCD with i2c
2x16 LCD with i2c

I am using your 2x16 LCD with i2c. Ones purchased a few months ago work great! I just received new units from robotshop.ca For these the lcd.noBacklight command does nothing. Substituting an older module into the same circuit without reloading the sketch works as expected. Have you changed the firmware?
2011-06-15 20:08:05 Hi,
I have checked the LCD with our LiquidCrystal_I2C.h library and it seems to be working fine.
Try using this code. The LCD should flash on and off every 2 seconds
[code]//DFRobot.com
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");
}
void loop()
{
lcd.backlight();
delay (2000);
lcd.noBacklight();
delay (2000);
}[/code]
Cheers,
Hector
Hector
I have checked the LCD with our LiquidCrystal_I2C.h library and it seems to be working fine.
Try using this code. The LCD should flash on and off every 2 seconds
[code]//DFRobot.com
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");
}
void loop()
{
lcd.backlight();
delay (2000);
lcd.noBacklight();
delay (2000);
}[/code]
Cheers,
Hector
