liquidcrystal_i2c and keypad_i2c compatibility issue

arduino 1.87 with megs 2560

adding that i am connect the lcd and keyped to I2c via PF 8574P

liquidcrystal_i2c NEWliquidcrystal_1.3.5 Created by Francisco Malpartida on 20/08/11.

keypad_i2c by joe young

i could not find and newer one of the keypad

if i just do my code for the display it works fine

once i add the code for the keypad it never seems to get to the lcd funtions in void setup()

#include <EEPROMex.h>
#include <Keypad_I2C.h>
//#include <EEPROM.h>
#include <avr/wdt.h>
#include <SPI.h>
#include <Ethernet.h>
#include <Keypad.h>
#include <MagStripe.h>
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x20,6,5,4,0,1,2,3);
char FWver[] = "Ver. 13.01.19.02 A";
const byte rows = 3; //three rows
const byte cols = 4; //four columns
char keys[rows][cols] = {
  {
    '1','2','3','C'                                        }
  ,
  {
    '4','5','6','0'                                        }
  ,
  {
    '7','8','9','E'                                        }

};
byte rowPins[rows] = {
  0,1,2}; //connect to the row pinouts of the keypad
byte colPins[cols] = {
  6,5,4,3}; //connect to the column pinouts of the keypad
//Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, rows, cols );
int i2caddress = 0x21;
//Keypad_I2C keypad = Keypad_I2C( makeKeymap(keys), rowPins, colPins, rows, cols, i2caddress );



void setup() {
  // put your setup code here, to run once:
lcd.begin(20, 2);
  lcd.clear();
  lcd.home();
  lcd.backlight();
  delay(10);
  lcd.print(FWver);
}

void loop() {
  // put your main code here, to run repeatedly:

}

the code version posted displays on lcd fine
if i uncomment Keypad_I2C keypad = Keypad_I2C( makeKeymap(keys), rowPins, colPins, rows, cols, i2caddress );

then nothing is displayed

any ideas

well that was easy, appartly the keypad library i had was out of date

this projects was started many years ago and just getting back yo it

Your LCD library is out of date as well. You should look into using the HD44780 library instead. There are lots of threads about this library in the 'Displays' section of the forum.

Don

thanks i will try it, also as of right nowi can do everything i need to do with lcd and i2c but cannot still cannot get the keypad to work

it worked in the past with an old keypad_i2c library

but now what ever i try i get no response from keyboard

floresta:
Your LCD library is out of date as well. You should look into using the HD44780 library instead. There are lots of threads about this library in the 'Displays' section of the forum.

Don

i have switched to the lcd library you suggested, i like it but still having issue with keypad