Hello all, new day, new problem :s.
trying to get this code to work:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Keypad.h>
const byte rows = 4;
const byte cols = 4;
char keys[rows][cols] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[rows] = {11,10,9,8};
byte colPins[cols] = {7,6,5,4};
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, rows, cols);
LiquidCrystal_I2C lcd(0x3F,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
lcd.init();
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(3,0);
lcd.print("You Pressed:");
}
void loop()
{
char key = keypad.getKey();
if (int(key) != 0) {
lcd.setCursor(16,0);
lcd.print(key);
}
}
Keypad is hooked up and lcd works but when i try to compile i get a error saying:
invalid conversion from 'int' to 't_backlightpol' .
Did a search online first offcourse, that got me to install new libraries but that also don't seem to fix the problem so i'm stuck again :s.