Sorry, this shoutbox does not exist.

Author Topic: DFR0063 I2C LCD  (Read 5467 times)

nerdymichael

  • Guest
Re: DFR0063 I2C LCD
« Reply #20 on: January 26, 2011, 05:21:44 pm »
Thanks Peter
Unfortunately I initially tried the dfrobot code and it failed, that other site was just a second attempt
All the code and libraries are  is in the right place with no duplicates, in the Mac environment I can see the dates each part of the library was built and it is the new code with the reset fix by tim

prune

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: DFR0063 I2C LCD
« Reply #21 on: February 16, 2011, 11:35:44 pm »
Hi,

Same problem here :
the LCD backlight is ON as soon as the power is plugged (VCC + GND)
The bottom line pixels are "visible", they disapear if I move the backlight pot
The top line is never visible
Can't display anything
Can't make the backlight flash, even with the Wire code, not using the LCDi2c lib

I'm using an Arduino Nano v3, i2C on port 4 and 5...

Can anybody help ? Is my LCD broken ?
Thanks !

reguil

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: DFR0063 I2C LCD
« Reply #22 on: April 26, 2012, 06:46:56 am »
hello,
with new arduino 1.0 and new librarie from your site, noBacklight function won't work.

before change (arduino v0.22 and I2C librarie from mars 2011) this noBacklight function turn light off and it's safe for power consumption and for earth.

may be it s not the good topic but i hope having a response to solve this and switchoff light as i've nothing to display.

please help.

Hector

  • Not an
  • Hero Member
  • *****
  • Posts: 788
  • Karma: +21/-2
    • Follow us on Twitter for coupons and product updates!
Re: DFR0063 I2C LCD
« Reply #23 on: May 02, 2012, 03:12:57 pm »
Hi,


We have tested the code and the nobacklight function works.


Code: [Select]

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
 
#if defined(ARDUINO) && ARDUINO >= 100
#define printByte(args)  write(args);
#else
#define printByte(args)  print(args,BYTE);
#endif
 
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
  lcd.backlight();
   
  lcd.home();
   
  lcd.print("Hello world...");
  lcd.setCursor(0, 1);
  lcd.print("dfrobot.com");
   
}
 
int backlightState = LOW;
long previousMillis = 0;
long interval = 1000;
   
void loop(){
   
  unsigned long currentMillis = millis();
 
  if(currentMillis - previousMillis > interval) {
    previousMillis = currentMillis;   
 
    if (backlightState == LOW)
      backlightState = HIGH;
    else
      backlightState = LOW;
 
    if(backlightState == HIGH)  lcd.backlight();
    else lcd.noBacklight();
  }
}
-Hector

Follow us on TWITTER for announcements of specials and product updates! Along with interesting open source robotics news!

 

SimplePortal 2.3.4 RC1 © 2008-2011, SimplePortal