mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-03 12:02:56 +00:00
working on renaming files
added test.sh
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* http://arcfn.com
|
||||
*/
|
||||
|
||||
#include "IRremote.h"
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
#define POWER 0x7F80
|
||||
#define AIWA_RC_T501
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* http://arcfn.com
|
||||
*/
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
int RECV_PIN = 11;
|
||||
int BUTTON_PIN = 12;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* http://arcfn.com
|
||||
*/
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
int RECV_PIN = 11;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* LG added by Darryl Smith (based on the JVC protocol)
|
||||
*/
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
/*
|
||||
* Default is Arduino pin D11.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// Include the IRremote library header
|
||||
//
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* http://arcfn.com
|
||||
*/
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
int RECV_PIN = 11;
|
||||
int RELAY_PIN = 4;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
void setup()
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
IRsend irsend;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
IRsend irsend;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* the arduino IDE.
|
||||
*/
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
#include <IRremoteInt.h>
|
||||
|
||||
// Dumps out the decode_results structure.
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* http://arcfn.com
|
||||
*/
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
int RECV_PIN = 11;
|
||||
int LED_PIN = 3;
|
||||
|
||||
@@ -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 <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
|
||||
#define PanasonicAddress 0x4004 // Panasonic address (Pre data)
|
||||
#define PanasonicPower 0x100BCBD // Panasonic Power button
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
#include <Wire.h>
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Copyright (c) 2016 Philipp Henkel
|
||||
*/
|
||||
|
||||
#include <IRremote.h>
|
||||
#include <InfraredRemote.h>
|
||||
#include <IRremoteInt.h>
|
||||
|
||||
IRsend irsend;
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
|
||||
// Defining IR_GLOBAL here allows us to declare the instantiation of global variables
|
||||
#define IR_GLOBAL
|
||||
# include "IRremote.h"
|
||||
# include "IRremoteInt.h"
|
||||
# include "InfraredRemote.h"
|
||||
# include "lib/InfraredRemoteInt.h"
|
||||
#undef IR_GLOBAL
|
||||
|
||||
#ifndef IR_TIMER_USE_ESP32
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// The ISR header contains several useful macros the user may wish to use
|
||||
//
|
||||
#include "IRremoteInt.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Supported IR protocols
|
||||
@@ -17,7 +17,7 @@
|
||||
void mark (int t) { printf("+%d," , t); }
|
||||
void space (int t) { printf("-%d, ", t); }
|
||||
#else
|
||||
# include "IRremote.h"
|
||||
# include "InfraredRemote.h"
|
||||
#endif // TEST
|
||||
|
||||
//+=============================================================================
|
||||
@@ -238,7 +238,7 @@ int main ( )
|
||||
#include <stdio.h>
|
||||
|
||||
#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
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
|
||||
#ifdef IR_TIMER_USE_ESP32
|
||||
hw_timer_t *timer;
|
||||
void IRTimer(); // defined in IRremote.cpp
|
||||
#endif
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
#ifdef IR_TIMER_USE_ESP32
|
||||
hw_timer_t *timer;
|
||||
void IRTimer(); // defined in IRremote.cpp
|
||||
#endif
|
||||
|
||||
//+=============================================================================
|
||||
// Decodes the received IR message
|
||||
@@ -122,17 +122,17 @@ IRrecv::IRrecv (int recvpin, int blinkpin)
|
||||
//
|
||||
void IRrecv::enableIRIn ( )
|
||||
{
|
||||
// Interrupt Service Routine - Fires every 50uS
|
||||
#ifdef ESP32
|
||||
// ESP32 has a proper API to setup timers, no weird chip macros needed
|
||||
// simply call the readable API versions :)
|
||||
// 3 timers, choose #1, 80 divider nanosecond precision, 1 to count up
|
||||
timer = timerBegin(1, 80, 1);
|
||||
timerAttachInterrupt(timer, &IRTimer, 1);
|
||||
// every 50ns, autoreload = true
|
||||
timerAlarmWrite(timer, 50, true);
|
||||
timerAlarmEnable(timer);
|
||||
#else
|
||||
// Interrupt Service Routine - Fires every 50uS
|
||||
#ifdef ESP32
|
||||
// ESP32 has a proper API to setup timers, no weird chip macros needed
|
||||
// simply call the readable API versions :)
|
||||
// 3 timers, choose #1, 80 divider nanosecond precision, 1 to count up
|
||||
timer = timerBegin(1, 80, 1);
|
||||
timerAttachInterrupt(timer, &IRTimer, 1);
|
||||
// every 50ns, autoreload = true
|
||||
timerAlarmWrite(timer, 50, true);
|
||||
timerAlarmEnable(timer);
|
||||
#else
|
||||
cli();
|
||||
// Setup pulse clock timer interrupt
|
||||
// Prescale /8 (16M/8 = 0.5 microseconds per tick)
|
||||
@@ -146,7 +146,7 @@ void IRrecv::enableIRIn ( )
|
||||
TIMER_RESET;
|
||||
|
||||
sei(); // enable interrupts
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Initialize state machine variables
|
||||
irparams.rcvstate = STATE_IDLE;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//+=============================================================================
|
||||
void IRsend::sendRaw (const unsigned int buf[], unsigned int len, unsigned int hz)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// AAA IIIII W W AAA
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
// Reverse Engineered by looking at RAW dumps generated by IRremote
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// DDDD IIIII SSSS H H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// JJJJJ V V CCCC
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// L GGGG
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
#include "ir_Lego_PF_BitStreamEncoder.h"
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// MMMMM IIIII TTTTT SSSS U U BBBB IIIII SSSS H H IIIII
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// N N EEEEE CCCC
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// PPPP AAA N N AAA SSSS OOO N N IIIII CCCC
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//+=============================================================================
|
||||
// Gets one undecoded level at a time from the raw buffer.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// SSSS AAA MMM SSSS U U N N GGGG
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// SSSS AAA N N Y Y OOO
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// SSSS H H AAA RRRR PPPP
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// SSSS OOO N N Y Y
|
||||
|
||||
@@ -91,8 +91,8 @@ Regards,
|
||||
BlueChip
|
||||
*/
|
||||
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
//
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "IRremote.h"
|
||||
#include "IRremoteInt.h"
|
||||
#include "InfraredRemote.h"
|
||||
#include "lib/InfraredRemoteInt.h"
|
||||
|
||||
//==============================================================================
|
||||
// W W H H Y Y N N TTTTT EEEEE RRRRR
|
||||
|
||||
8
test.sh
Normal file
8
test.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
PLATFORMIO_CI_SRC=examples/AiwaRCT501SendDemo python2 -m platformio ci --lib="." --board=uno
|
||||
PLATFORMIO_CI_SRC=examples/IRrecord python2 -m platformio ci --lib="." --board=uno
|
||||
PLATFORMIO_CI_SRC=examples/IRrecvDemo python2 -m platformio ci --lib="." --board=uno
|
||||
PLATFORMIO_CI_SRC=examples/IRrecvDumpV2 python2 -m platformio ci --lib="." --board=uno
|
||||
PLATFORMIO_CI_SRC=examples/IRrelay python2 -m platformio ci --lib="." --board=uno
|
||||
PLATFORMIO_CI_SRC=examples/IRremoteInfo python2 -m platformio ci --lib="." --board=uno
|
||||
PLATFORMIO_CI_SRC=examples/IRsendDemo python2 -m platformio ci --lib="." --board=uno
|
||||
PLATFORMIO_CI_SRC=examples/IRsendRawDemo python2 -m platformio ci --lib="." --board=uno
|
||||
Reference in New Issue
Block a user