#include <IRremote.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
int signal=7;
int num1=48;
void setup() {
lcd.init();
lcd.backlight();
Serial.begin(9600);
IrReceiver.begin(signal);
// put your setup code here, to run once:
}
void loop() {
int a=IrReceiver.decodedIRData.command;
if(IrReceiver.decode())
{
Serial.println(IrReceiver.decodedIRData.command);
IrReceiver.resume();
}
if(a==162)
{
lcd.clear();
lcd.setCursor(0,0);
lcd.println("number a is pressed");
delay(1000);
}
else if(a==24)
{
lcd.println("number 2 is pressed");
delay(1000);
}
else
{
lcd.println("press on another number");
delay(1000);
}
// put your main code here, to run repeatedly:
}
// put your main code here, to run repeatedly: