//
// include the library code:
#include <IRremote.h>
// initialize the IR Transmitter
IRsend IRsend;
int IRtrans = 1;
// initialize the Bouton
int buttonOnOff = 12;
void setup() {
// set up the IIR transmitter et Bouton
pinMode(IRtrans, OUTPUT);
pinMode(buttonOnOff, INPUT_PULLUP);
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
// print the number of seconds since reset:
if (digitalRead(buttonOnOff) == LOW)
{
IRsend.sendNEC(0xFF10EF, 32);
lcd.setCursor(0, 0);
lcd.print("0xFF10EF");
delay(40);
lcd.print("");
}
}