Author Topic: Serial IIC I2C Adapter Module problems  (Read 1595 times)

Colonel_007

  • Newbie
  • *
  • Posts: 1
    • View Profile
Serial IIC I2C Adapter Module problems
« on: November 21, 2014, 09:37:50 PM »
I recently purchased a Serial IIC I2C Adapter Module for 1602 2004 LCD.  I cannot seem to get this unit working.  The unit is working with a 20x4 LCD (
http://www.ebay.com/itm/2004-Quality-LCD-Character-Display-Module-20x4-White-on-Blue-Arduino-AVR-PIC-/271317341127?pt=AU_B_I_Electrical_Test_Equipment&hash=item3f2bc613c7)

I have tried this Library:
http://hmario.home.xs4all.nl/arduino/LiquidCrystal_I2C/

With this Code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C LCD(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  // Set the LCD I2C address

void setup() {
    LCD.begin(20, 4);  // 20 lines by 4 rows
    LCD.clear();
    LCD.backlight();
    LCD.setCursor(0,0);
    LCD.print("Hello Line 1");
    LCD.setCursor(0,1);
    LCD.print("Hello Line 2");
}

void loop() {
    delay(500);
    LCD.clear();
    LCD.home();
    LCD.print(millis());
}

I get the following message:
error: 'POSITIVE' was not declared in this scope

I have also tried the same code, replacing
LiquidCrystal_I2C LCD(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
with
LiquidCrystal_I2C LCD(0x27, 20,4);

This at least compiles, but only results in a blank screen with two solid rows at row 1 and 3.

Suggestions?