изменила определение ноги отправки сигнала

This commit is contained in:
KLASSENTS 2025-01-24 15:02:57 +07:00
parent ed3287bd4b
commit e1ef6c5a92

View File

@ -31,12 +31,11 @@
*/ */
#include <Arduino.h> #include <Arduino.h>
//#define EXCLUDE_EXOTIC_PROTOCOLS // Saves around 240 bytes program memory if IrSender.write is used //#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_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 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 //#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 * Helper macro for getting a macro definition as string
*/ */
@ -45,8 +44,13 @@
#define STR(x) STR_HELPER(x) #define STR(x) STR_HELPER(x)
#endif #endif
#ifndef IR_SEND_PIN
#define IR_SEND_PIN P0_0 // 3
#endif
#include <IRremote.hpp> #include <IRremote.hpp>
// #undef IR_SEND_PIN // to use tSendPin
#define DELAY_AFTER_SEND 2000 #define DELAY_AFTER_SEND 2000
#define DELAY_AFTER_LOOP 5000 #define DELAY_AFTER_LOOP 5000