As you may see on the title i can't find out why does the lcd display don't appear, i was also working wth a remote controll.
#include <IRremote.h>
#include <LiquidCrystal.h>
int RECV_PIN = 2;
IRrecv irrecv(RECV_PIN);
decode_results results;
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
#define POWER 0xFFA25D
#define UNO 0xFF30CF
void setup()
{
irrecv.enableIRIn();
}
void loop() {
if (irrecv.decode(&results))
{
if (results.value == POWER)
{
delay(1000);
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("Me gusta la lasagna");
}
if (results.value == UNO)
{
delay(1000);
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("Me gusta la lasagna");
}
irrecv.resume();
}
}