working on renaming files

This commit is contained in:
Rafi Khan
2017-04-22 23:25:11 -06:00
parent f1eac2e094
commit 55c08a7d35
26 changed files with 61 additions and 60 deletions

View File

@@ -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

View File

@@ -6,7 +6,7 @@
* http://arcfn.com * http://arcfn.com
*/ */
#include <IRremote.h> #include <InfraredRemote.h>
int RECV_PIN = 11; int RECV_PIN = 11;

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,5 +1,5 @@
#include "IRremote.h" #include "InfraredRemote.h"
#include "IRremoteInt.h" #include "lib/InfraredRemoteInt.h"
//============================================================================== //==============================================================================
// L GGGG // L GGGG

View File

@@ -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"
//============================================================================== //==============================================================================

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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.

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -91,8 +91,8 @@ Regards,
BlueChip BlueChip
*/ */
#include "IRremote.h" #include "InfraredRemote.h"
#include "IRremoteInt.h" #include "lib/InfraredRemoteInt.h"
//============================================================================== //==============================================================================
// //

View File

@@ -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

1
test.sh Normal file
View File

@@ -0,0 +1 @@
PLATFORMIO_CI_SRC=examples/IRrecvDemo python2 -m platformio ci --lib="." --board=uno