From 5b5f3b793d8fe0cf0db8fc3dccfc2d8d50011e95 Mon Sep 17 00:00:00 2001 From: KLASSENTS Date: Fri, 24 Jan 2025 15:02:57 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0=20=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BD=D0=BE=D0=B3=D0=B8=20=D0=BE=D1=82=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D1=81=D0=B8=D0=B3=D0=BD=D0=B0?= =?UTF-8?q?=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libraries/IRremote/examples/SendDemo/SendDemo.ino | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/IRremote/examples/SendDemo/SendDemo.ino b/libraries/IRremote/examples/SendDemo/SendDemo.ino index de08e26..cf75db4 100644 --- a/libraries/IRremote/examples/SendDemo/SendDemo.ino +++ b/libraries/IRremote/examples/SendDemo/SendDemo.ino @@ -31,12 +31,11 @@ */ #include //#define EXCLUDE_EXOTIC_PROTOCOLS // Saves around 240 bytes program memory if IrSender.write is used -//#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 USE_ACTIVE_HIGH_OUTPUT_FOR_SEND_PIN // Simulate an active high receiver signal instead of an active low signal. //#define NO_LED_FEEDBACK_CODE // Saves 566 bytes program memory -//#undef IR_SEND_PIN // enable this, if you need to set send pin programmatically using uint8_t tSendPin below /* * Helper macro for getting a macro definition as string */ @@ -45,8 +44,13 @@ #define STR(x) STR_HELPER(x) #endif +#ifndef IR_SEND_PIN +#define IR_SEND_PIN P0_0 // 3 +#endif + #include +// #undef IR_SEND_PIN // to use tSendPin #define DELAY_AFTER_SEND 2000 #define DELAY_AFTER_LOOP 5000