Update IRRemoteESP8266 version to 2.5.5

factorize IR send signal function between the 2 types of receiving
Add new IRRemoteESP8266 protocols
replace pins on mega according schema
remove unecessaries spaces
This commit is contained in:
Florian committed 2019-02-08 16:50:37 +01:00
1 parent 0180a0dbd5
commit f0305236db
149 files changed
+20957 -7850

No files matched your search

@@ -1,7 +1,7 @@
/* Copyright 2017 sillyfrog
*
* An IR LED circuit *MUST* be connected to the ESP8266 on a pin
* as specified by IR_LED below.
* as specified by kIrLed below.
*
* TL;DR: The IR LED needs to be driven by a transistor for a good result.
*
@@ -31,11 +31,11 @@
#include <IRsend.h>
#include <ir_Daikin.h>
#define IR_LED 4 // ESP8266 GPIO pin to use. Recommended: 4 (D2).
IRDaikinESP daikinir(IR_LED); // Set the GPIO to be used to sending the message
const uint16_t kIrLed = 4; // ESP8266 GPIO pin to use. Recommended: 4 (D2).
IRDaikinESP ac(kIrLed); // Set the GPIO to be used to sending the message
void setup() {
daikinir.begin();
ac.begin();
Serial.begin(115200);
}
@@ -44,25 +44,25 @@ void loop() {
Serial.println("Sending...");
// Set up what we want to send. See ir_Daikin.cpp for all the options.
daikinir.on();
daikinir.setFan(1);
daikinir.setMode(DAIKIN_COOL);
daikinir.setTemp(25);
daikinir.setSwingVertical(false);
daikinir.setSwingHorizontal(false);
ac.on();
ac.setFan(1);
ac.setMode(kDaikinCool);
ac.setTemp(25);
ac.setSwingVertical(false);
ac.setSwingHorizontal(false);
// Set the current time to 1:33PM (13:33)
// Time works in minutes past midnight
daikinir.setCurrentTime((13*60) + 33);
// Turn off about 1 hour later at 2:30PM (15:30)
daikinir.enableOffTimer((14*60) + 30);
ac.setCurrentTime(13 * 60 + 33);
// Turn off about 1 hour later at 2:30PM (14:30)
ac.enableOffTimer(14 * 60 + 30);
// Display what we are going to send.
Serial.println(daikinir.toString());
Serial.println(ac.toString());
// Now send the IR signal.
#if SEND_DAIKIN
daikinir.send();
ac.send();
#endif // SEND_DAIKIN
delay(15000);