From 13ac290b3bf7e251ea0275ac70c94c62fc6d3ba7 Mon Sep 17 00:00:00 2001 From: Rafi Khan Date: Sun, 11 Dec 2016 20:28:43 -0600 Subject: [PATCH] working on restructuring and renaming. Change IRremote.h to AIRremote.h If there are other ideas for a better name then we can use that, A = Arduino in case it wasnt obvious. --- IRremote.h => AIRremote.h | 4 ++-- IRremote.cpp | 2 +- ISSUE_TEMPLATE.md | 2 +- examples/AiwaRCT501SendDemo/AiwaRCT501SendDemo.ino | 2 +- examples/IRrecord/IRrecord.ino | 2 +- examples/IRrecvDemo/IRrecvDemo.ino | 2 +- examples/IRrecvDump/IRrecvDump.ino | 2 +- examples/IRrecvDumpV2/IRrecvDumpV2.ino | 2 +- examples/IRrelay/IRrelay.ino | 2 +- examples/IRremoteInfo/IRremoteInfo.ino | 4 ++-- examples/IRsendDemo/IRsendDemo.ino | 2 +- examples/IRsendRawDemo/IRsendRawDemo.ino | 2 +- examples/IRtest/IRtest.ino | 4 ++-- examples/IRtest2/IRtest2.ino | 2 +- examples/JVCPanasonicSendDemo/JVCPanasonicSendDemo.ino | 2 +- examples/LGACSendDemo/LGACSendDemo.ino | 2 +- .../LegoPowerFunctionsSendDemo/LegoPowerFunctionsSendDemo.ino | 2 +- irPronto.cpp | 2 +- irRecv.cpp | 2 +- irSend.cpp | 2 +- ir_Aiwa.cpp | 2 +- ir_Denon.cpp | 2 +- ir_Dish.cpp | 2 +- ir_JVC.cpp | 2 +- ir_LG.cpp | 2 +- ir_Lego_PF.cpp | 2 +- ir_Mitsubishi.cpp | 2 +- ir_NEC.cpp | 2 +- ir_Panasonic.cpp | 2 +- ir_RC5_RC6.cpp | 2 +- ir_Samsung.cpp | 2 +- ir_Sanyo.cpp | 2 +- ir_Sharp.cpp | 2 +- ir_Sony.cpp | 2 +- ir_Template.cpp | 4 ++-- ir_Whynter.cpp | 2 +- 36 files changed, 40 insertions(+), 40 deletions(-) rename IRremote.h => AIRremote.h (99%) diff --git a/IRremote.h b/AIRremote.h similarity index 99% rename from IRremote.h rename to AIRremote.h index fe1a870..8e9e142 100644 --- a/IRremote.h +++ b/AIRremote.h @@ -15,8 +15,8 @@ // Whynter A/C ARC-110WD added by Francesco Meschia //****************************************************************************** -#ifndef IRremote_h -#define IRremote_h +#ifndef AIRremote_h +#define AIRremote_h //------------------------------------------------------------------------------ // The ISR header contains several useful macros the user may wish to use diff --git a/IRremote.cpp b/IRremote.cpp index c9907eb..61e15ca 100644 --- a/IRremote.cpp +++ b/IRremote.cpp @@ -22,7 +22,7 @@ // Defining IR_GLOBAL here allows us to declare the instantiation of global variables #define IR_GLOBAL -# include "IRremote.h" +# include "AIRremote.h" # include "IRremoteInt.h" #undef IR_GLOBAL diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index bb9232e..94b8a0a 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -5,7 +5,7 @@ **Code Block:** ```c -#include +#include ..... diff --git a/examples/AiwaRCT501SendDemo/AiwaRCT501SendDemo.ino b/examples/AiwaRCT501SendDemo/AiwaRCT501SendDemo.ino index 5a9862b..f366d04 100644 --- a/examples/AiwaRCT501SendDemo/AiwaRCT501SendDemo.ino +++ b/examples/AiwaRCT501SendDemo/AiwaRCT501SendDemo.ino @@ -6,7 +6,7 @@ * http://arcfn.com */ -#include "IRremote.h" +#include "AIRremote.h" #define POWER 0x7F80 #define AIWA_RC_T501 diff --git a/examples/IRrecord/IRrecord.ino b/examples/IRrecord/IRrecord.ino index bf290fa..3be539c 100644 --- a/examples/IRrecord/IRrecord.ino +++ b/examples/IRrecord/IRrecord.ino @@ -15,7 +15,7 @@ * http://arcfn.com */ -#include +#include int RECV_PIN = 11; int BUTTON_PIN = 12; diff --git a/examples/IRrecvDemo/IRrecvDemo.ino b/examples/IRrecvDemo/IRrecvDemo.ino index 3a49832..44a5178 100644 --- a/examples/IRrecvDemo/IRrecvDemo.ino +++ b/examples/IRrecvDemo/IRrecvDemo.ino @@ -6,7 +6,7 @@ * http://arcfn.com */ -#include +#include int RECV_PIN = 11; diff --git a/examples/IRrecvDump/IRrecvDump.ino b/examples/IRrecvDump/IRrecvDump.ino index 90b47ba..af22102 100644 --- a/examples/IRrecvDump/IRrecvDump.ino +++ b/examples/IRrecvDump/IRrecvDump.ino @@ -8,7 +8,7 @@ * LG added by Darryl Smith (based on the JVC protocol) */ -#include +#include /* * Default is Arduino pin D11. diff --git a/examples/IRrecvDumpV2/IRrecvDumpV2.ino b/examples/IRrecvDumpV2/IRrecvDumpV2.ino index cbfadcc..eaa09ed 100644 --- a/examples/IRrecvDumpV2/IRrecvDumpV2.ino +++ b/examples/IRrecvDumpV2/IRrecvDumpV2.ino @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // Include the IRremote library header // -#include +#include //------------------------------------------------------------------------------ // Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838) diff --git a/examples/IRrelay/IRrelay.ino b/examples/IRrelay/IRrelay.ino index 046fb5f..b82beff 100644 --- a/examples/IRrelay/IRrelay.ino +++ b/examples/IRrelay/IRrelay.ino @@ -6,7 +6,7 @@ * http://arcfn.com */ -#include +#include int RECV_PIN = 11; int RELAY_PIN = 4; diff --git a/examples/IRremoteInfo/IRremoteInfo.ino b/examples/IRremoteInfo/IRremoteInfo.ino index 2a269d9..f5969fb 100644 --- a/examples/IRremoteInfo/IRremoteInfo.ino +++ b/examples/IRremoteInfo/IRremoteInfo.ino @@ -11,7 +11,7 @@ */ -#include +#include void setup() { @@ -224,7 +224,7 @@ void dumpFooter() { Serial.println(F("Notes: ")); Serial.println(F(" - Most of the seetings above can be configured in the following files included as part of the library")); Serial.println(F(" - IRremteInt.h")); - Serial.println(F(" - IRremote.h")); + Serial.println(F(" - AIRremote.h")); Serial.println(F(" - You can save SRAM by disabling the Decode or Send features for any protocol (Near the top of IRremoteInt.h)")); Serial.println(F(" - Some Timer conflicts, with other libraries, can be easily resolved by configuring a differnt Timer for your platform")); } diff --git a/examples/IRsendDemo/IRsendDemo.ino b/examples/IRsendDemo/IRsendDemo.ino index 4f23af6..519ff4b 100644 --- a/examples/IRsendDemo/IRsendDemo.ino +++ b/examples/IRsendDemo/IRsendDemo.ino @@ -7,7 +7,7 @@ */ -#include +#include IRsend irsend; diff --git a/examples/IRsendRawDemo/IRsendRawDemo.ino b/examples/IRsendRawDemo/IRsendRawDemo.ino index e83d6e6..6cd905d 100644 --- a/examples/IRsendRawDemo/IRsendRawDemo.ino +++ b/examples/IRsendRawDemo/IRsendRawDemo.ino @@ -18,7 +18,7 @@ */ -#include +#include IRsend irsend; diff --git a/examples/IRtest/IRtest.ino b/examples/IRtest/IRtest.ino index 4845a4a..d41ab4d 100644 --- a/examples/IRtest/IRtest.ino +++ b/examples/IRtest/IRtest.ino @@ -4,12 +4,12 @@ * Copyright 2009 Ken Shirriff * http://arcfn.com * - * Note: to run these tests, edit IRremote/IRremote.h to add "#define TEST" + * Note: to run these tests, edit IRremote/AIRremote.h to add "#define TEST" * You must then recompile the library by removing IRremote.o and restarting * the arduino IDE. */ -#include +#include #include // Dumps out the decode_results structure. diff --git a/examples/IRtest2/IRtest2.ino b/examples/IRtest2/IRtest2.ino index 56b8a4d..8ec9e1f 100644 --- a/examples/IRtest2/IRtest2.ino +++ b/examples/IRtest2/IRtest2.ino @@ -25,7 +25,7 @@ * http://arcfn.com */ -#include +#include int RECV_PIN = 11; int LED_PIN = 3; diff --git a/examples/JVCPanasonicSendDemo/JVCPanasonicSendDemo.ino b/examples/JVCPanasonicSendDemo/JVCPanasonicSendDemo.ino index 33c167c..eff8fd7 100644 --- a/examples/JVCPanasonicSendDemo/JVCPanasonicSendDemo.ino +++ b/examples/JVCPanasonicSendDemo/JVCPanasonicSendDemo.ino @@ -6,7 +6,7 @@ * http://arcfn.com * JVC and Panasonic protocol added by Kristian Lauszus (Thanks to zenwheel and other people at the original blog post) */ -#include +#include #define PanasonicAddress 0x4004 // Panasonic address (Pre data) #define PanasonicPower 0x100BCBD // Panasonic Power button diff --git a/examples/LGACSendDemo/LGACSendDemo.ino b/examples/LGACSendDemo/LGACSendDemo.ino index da5db37..09e630f 100644 --- a/examples/LGACSendDemo/LGACSendDemo.ino +++ b/examples/LGACSendDemo/LGACSendDemo.ino @@ -1,4 +1,4 @@ -#include +#include #include diff --git a/examples/LegoPowerFunctionsSendDemo/LegoPowerFunctionsSendDemo.ino b/examples/LegoPowerFunctionsSendDemo/LegoPowerFunctionsSendDemo.ino index e43d06c..ea3988c 100644 --- a/examples/LegoPowerFunctionsSendDemo/LegoPowerFunctionsSendDemo.ino +++ b/examples/LegoPowerFunctionsSendDemo/LegoPowerFunctionsSendDemo.ino @@ -3,7 +3,7 @@ * Copyright (c) 2016 Philipp Henkel */ -#include +#include #include IRsend irsend; diff --git a/irPronto.cpp b/irPronto.cpp index 0f530a9..bdfd3ab 100644 --- a/irPronto.cpp +++ b/irPronto.cpp @@ -17,7 +17,7 @@ void mark (int t) { printf("+%d," , t); } void space (int t) { printf("-%d, ", t); } #else -# include "IRremote.h" +# include "AIRremote.h" #endif // TEST //+============================================================================= diff --git a/irRecv.cpp b/irRecv.cpp index 6343856..b4db574 100644 --- a/irRecv.cpp +++ b/irRecv.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //+============================================================================= diff --git a/irSend.cpp b/irSend.cpp index 253c941..8f8afe0 100644 --- a/irSend.cpp +++ b/irSend.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //+============================================================================= diff --git a/ir_Aiwa.cpp b/ir_Aiwa.cpp index 50ec58d..1620624 100644 --- a/ir_Aiwa.cpp +++ b/ir_Aiwa.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_Denon.cpp b/ir_Denon.cpp index c54e286..5d143cd 100644 --- a/ir_Denon.cpp +++ b/ir_Denon.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" // Reverse Engineered by looking at RAW dumps generated by IRremote diff --git a/ir_Dish.cpp b/ir_Dish.cpp index fa8e065..ab63e9e 100644 --- a/ir_Dish.cpp +++ b/ir_Dish.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_JVC.cpp b/ir_JVC.cpp index eeec20f..30ab345 100644 --- a/ir_JVC.cpp +++ b/ir_JVC.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_LG.cpp b/ir_LG.cpp index ba532cb..5233ceb 100644 --- a/ir_LG.cpp +++ b/ir_LG.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_Lego_PF.cpp b/ir_Lego_PF.cpp index 37d507c..8a9a2b9 100644 --- a/ir_Lego_PF.cpp +++ b/ir_Lego_PF.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" #include "ir_Lego_PF_BitStreamEncoder.h" diff --git a/ir_Mitsubishi.cpp b/ir_Mitsubishi.cpp index 7f83e53..2133e2e 100644 --- a/ir_Mitsubishi.cpp +++ b/ir_Mitsubishi.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_NEC.cpp b/ir_NEC.cpp index 3b49321..b645835 100644 --- a/ir_NEC.cpp +++ b/ir_NEC.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_Panasonic.cpp b/ir_Panasonic.cpp index dc0dd73..1336e42 100644 --- a/ir_Panasonic.cpp +++ b/ir_Panasonic.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_RC5_RC6.cpp b/ir_RC5_RC6.cpp index 10e7927..17214ce 100644 --- a/ir_RC5_RC6.cpp +++ b/ir_RC5_RC6.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //+============================================================================= diff --git a/ir_Samsung.cpp b/ir_Samsung.cpp index 224487d..e109474 100644 --- a/ir_Samsung.cpp +++ b/ir_Samsung.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_Sanyo.cpp b/ir_Sanyo.cpp index c775d61..a3c032d 100644 --- a/ir_Sanyo.cpp +++ b/ir_Sanyo.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_Sharp.cpp b/ir_Sharp.cpp index 73462c5..8b5ce40 100644 --- a/ir_Sharp.cpp +++ b/ir_Sharp.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_Sony.cpp b/ir_Sony.cpp index 31e67cf..b6e29f7 100644 --- a/ir_Sony.cpp +++ b/ir_Sony.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_Template.cpp b/ir_Template.cpp index eee2b0b..defaf0c 100644 --- a/ir_Template.cpp +++ b/ir_Template.cpp @@ -31,7 +31,7 @@ You have written the code to support your new protocol! Now you must do a few things to add it to the IRremote system: -1. Open IRremote.h and make the following changes: +1. Open AIRremote.h and make the following changes: REMEMEBER to change occurences of "SHUZU" with the name of your protocol A. At the top, in the section "Supported Protocols", add: @@ -91,7 +91,7 @@ Regards, BlueChip */ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //============================================================================== diff --git a/ir_Whynter.cpp b/ir_Whynter.cpp index a830562..79ae32c 100644 --- a/ir_Whynter.cpp +++ b/ir_Whynter.cpp @@ -1,4 +1,4 @@ -#include "IRremote.h" +#include "AIRremote.h" #include "IRremoteInt.h" //==============================================================================