Добавлена библиотека IRremote #10

Merged
klassents merged 75 commits from dev into v0.5.0 2025-01-25 06:52:11 +03:00
Showing only changes of commit 5b5f3b793d - Show all commits

View File

@ -31,12 +31,11 @@
*/
#include <Arduino.h>
//#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 <IRremote.hpp>
// #undef IR_SEND_PIN // to use tSendPin
#define DELAY_AFTER_SEND 2000
#define DELAY_AFTER_LOOP 5000