From 6f9a964650d83ccf9e32af0af4bdb789daea9582 Mon Sep 17 00:00:00 2001 From: KLASSENTS Date: Fri, 24 Jan 2025 11:00:32 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=20=D0=BC=D0=B5=D0=BB=D0=BE=D1=87?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libraries/IRremote/examples/SendAndReceive/SendAndReceive.ino | 4 ++-- libraries/IRremote/examples/SimpleSender/SimpleSender.ino | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/IRremote/examples/SendAndReceive/SendAndReceive.ino b/libraries/IRremote/examples/SendAndReceive/SendAndReceive.ino index c6089d2..0dc107c 100644 --- a/libraries/IRremote/examples/SendAndReceive/SendAndReceive.ino +++ b/libraries/IRremote/examples/SendAndReceive/SendAndReceive.ino @@ -40,7 +40,7 @@ //#define EXCLUDE_EXOTIC_PROTOCOLS // saves around 650 bytes program memory if all other protocols are active //#define NO_LED_FEEDBACK_CODE // saves 92 bytes program memory //#define RECORD_GAP_MICROS 12000 // Default is 8000. Activate it for some LG air conditioner protocols -//#define SEND_PWM_BY_TIMER // Disable carrier PWM generation in software and use (restricted) hardware PWM. +#define SEND_PWM_BY_TIMER // Disable carrier PWM generation in software and use (restricted) hardware PWM. //#define USE_NO_SEND_PWM // Use no carrier PWM, just simulate an active low receiver signal. Overrides SEND_PWM_BY_TIMER definition //#define DEBUG // Activate this for lots of lovely debug output from the decoders. @@ -75,7 +75,7 @@ void setup() { Serial.print(F("Ready to receive IR signals of protocols: ")); printActiveIRProtocols(&Serial); Serial.println(F("at pin " STR(IR_RECEIVE_PIN))); - IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin + IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback LED at default feedback LED pin Serial.println(F("Send IR signals at pin " STR(IR_SEND_PIN))); # if !defined(SEND_PWM_BY_TIMER) && !defined(USE_NO_SEND_PWM) diff --git a/libraries/IRremote/examples/SimpleSender/SimpleSender.ino b/libraries/IRremote/examples/SimpleSender/SimpleSender.ino index 1dcc978..952a4ad 100644 --- a/libraries/IRremote/examples/SimpleSender/SimpleSender.ino +++ b/libraries/IRremote/examples/SimpleSender/SimpleSender.ino @@ -13,8 +13,8 @@ */ #include -//#define SEND_PWM_BY_TIMER // Disable carrier PWM generation in software and use (restricted) hardware PWM. -#define USE_NO_SEND_PWM // Use no carrier PWM, just simulate an active low receiver signal. Overrides SEND_PWM_BY_TIMER definition +#define SEND_PWM_BY_TIMER // Disable carrier PWM generation in software and use (restricted) hardware PWM. +//#define USE_NO_SEND_PWM // Use no carrier PWM, just simulate an active low receiver signal. Overrides SEND_PWM_BY_TIMER definition #define IR_SEND_PIN 5