mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-19 15:52:54 +00:00
working on renaming files
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
* http://arcfn.com
|
* http://arcfn.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
|
|
||||||
#define POWER 0x7F80
|
#define POWER 0x7F80
|
||||||
#define AIWA_RC_T501
|
#define AIWA_RC_T501
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* http://arcfn.com
|
* http://arcfn.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <IRremote.h>
|
#include <InfraredRemote.h>
|
||||||
|
|
||||||
int RECV_PIN = 11;
|
int RECV_PIN = 11;
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
// Defining IR_GLOBAL here allows us to declare the instantiation of global variables
|
// Defining IR_GLOBAL here allows us to declare the instantiation of global variables
|
||||||
#define IR_GLOBAL
|
#define IR_GLOBAL
|
||||||
# include "IRremote.h"
|
# include "InfraredRemote.h"
|
||||||
# include "IRremoteInt.h"
|
# include "lib/InfraredRemoteInt.h"
|
||||||
#undef IR_GLOBAL
|
#undef IR_GLOBAL
|
||||||
|
|
||||||
#ifndef IR_TIMER_USE_ESP32
|
#ifndef IR_TIMER_USE_ESP32
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// The ISR header contains several useful macros the user may wish to use
|
// The ISR header contains several useful macros the user may wish to use
|
||||||
//
|
//
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Supported IR protocols
|
// Supported IR protocols
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
void mark (int t) { printf("+%d," , t); }
|
void mark (int t) { printf("+%d," , t); }
|
||||||
void space (int t) { printf("-%d, ", t); }
|
void space (int t) { printf("-%d, ", t); }
|
||||||
#else
|
#else
|
||||||
# include "IRremote.h"
|
# include "InfraredRemote.h"
|
||||||
#endif // TEST
|
#endif // TEST
|
||||||
|
|
||||||
//+=============================================================================
|
//+=============================================================================
|
||||||
@@ -238,7 +238,7 @@ int main ( )
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#define IRPRONTO
|
#define IRPRONTO
|
||||||
#include "IRremoteInt.h" // The Arduino IRremote library defines USECPERTICK
|
#include "lib/InfraredRemoteInt.h" // The Arduino IRremote library defines USECPERTICK
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Source: https://www.google.co.uk/search?q=DENON+MASTER+IR+Hex+Command+Sheet
|
// Source: https://www.google.co.uk/search?q=DENON+MASTER+IR+Hex+Command+Sheet
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
#ifdef IR_TIMER_USE_ESP32
|
#ifdef IR_TIMER_USE_ESP32
|
||||||
hw_timer_t *timer;
|
hw_timer_t *timer;
|
||||||
void IRTimer(); // defined in IRremote.cpp
|
void IRTimer(); // defined in IRremote.cpp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//+=============================================================================
|
//+=============================================================================
|
||||||
// Decodes the received IR message
|
// Decodes the received IR message
|
||||||
@@ -122,17 +122,17 @@ IRrecv::IRrecv (int recvpin, int blinkpin)
|
|||||||
//
|
//
|
||||||
void IRrecv::enableIRIn ( )
|
void IRrecv::enableIRIn ( )
|
||||||
{
|
{
|
||||||
// Interrupt Service Routine - Fires every 50uS
|
// Interrupt Service Routine - Fires every 50uS
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
// ESP32 has a proper API to setup timers, no weird chip macros needed
|
// ESP32 has a proper API to setup timers, no weird chip macros needed
|
||||||
// simply call the readable API versions :)
|
// simply call the readable API versions :)
|
||||||
// 3 timers, choose #1, 80 divider nanosecond precision, 1 to count up
|
// 3 timers, choose #1, 80 divider nanosecond precision, 1 to count up
|
||||||
timer = timerBegin(1, 80, 1);
|
timer = timerBegin(1, 80, 1);
|
||||||
timerAttachInterrupt(timer, &IRTimer, 1);
|
timerAttachInterrupt(timer, &IRTimer, 1);
|
||||||
// every 50ns, autoreload = true
|
// every 50ns, autoreload = true
|
||||||
timerAlarmWrite(timer, 50, true);
|
timerAlarmWrite(timer, 50, true);
|
||||||
timerAlarmEnable(timer);
|
timerAlarmEnable(timer);
|
||||||
#else
|
#else
|
||||||
cli();
|
cli();
|
||||||
// Setup pulse clock timer interrupt
|
// Setup pulse clock timer interrupt
|
||||||
// Prescale /8 (16M/8 = 0.5 microseconds per tick)
|
// Prescale /8 (16M/8 = 0.5 microseconds per tick)
|
||||||
@@ -146,7 +146,7 @@ void IRrecv::enableIRIn ( )
|
|||||||
TIMER_RESET;
|
TIMER_RESET;
|
||||||
|
|
||||||
sei(); // enable interrupts
|
sei(); // enable interrupts
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Initialize state machine variables
|
// Initialize state machine variables
|
||||||
irparams.rcvstate = STATE_IDLE;
|
irparams.rcvstate = STATE_IDLE;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//+=============================================================================
|
//+=============================================================================
|
||||||
void IRsend::sendRaw (const unsigned int buf[], unsigned int len, unsigned int hz)
|
void IRsend::sendRaw (const unsigned int buf[], unsigned int len, unsigned int hz)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// AAA IIIII W W AAA
|
// AAA IIIII W W AAA
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
// Reverse Engineered by looking at RAW dumps generated by IRremote
|
// Reverse Engineered by looking at RAW dumps generated by IRremote
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// DDDD IIIII SSSS H H
|
// DDDD IIIII SSSS H H
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// JJJJJ V V CCCC
|
// JJJJJ V V CCCC
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// L GGGG
|
// L GGGG
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
#include "ir_Lego_PF_BitStreamEncoder.h"
|
#include "ir_Lego_PF_BitStreamEncoder.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// MMMMM IIIII TTTTT SSSS U U BBBB IIIII SSSS H H IIIII
|
// MMMMM IIIII TTTTT SSSS U U BBBB IIIII SSSS H H IIIII
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// N N EEEEE CCCC
|
// N N EEEEE CCCC
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// PPPP AAA N N AAA SSSS OOO N N IIIII CCCC
|
// PPPP AAA N N AAA SSSS OOO N N IIIII CCCC
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//+=============================================================================
|
//+=============================================================================
|
||||||
// Gets one undecoded level at a time from the raw buffer.
|
// Gets one undecoded level at a time from the raw buffer.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// SSSS AAA MMM SSSS U U N N GGGG
|
// SSSS AAA MMM SSSS U U N N GGGG
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// SSSS AAA N N Y Y OOO
|
// SSSS AAA N N Y Y OOO
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// SSSS H H AAA RRRR PPPP
|
// SSSS H H AAA RRRR PPPP
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// SSSS OOO N N Y Y
|
// SSSS OOO N N Y Y
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ Regards,
|
|||||||
BlueChip
|
BlueChip
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "IRremote.h"
|
#include "InfraredRemote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "lib/InfraredRemoteInt.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// W W H H Y Y N N TTTTT EEEEE RRRRR
|
// W W H H Y Y N N TTTTT EEEEE RRRRR
|
||||||
|
|||||||
Reference in New Issue
Block a user