Добавлена библиотека IRremote #10
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user