mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-21 00:32:51 +00:00
Merge branch 'fab672000-master' into experimental
Conflicts: IRremote.cpp IRremote.h * Saves lots of precious ram * Debug Improvement * Minor refactoring * Better Install Instructions * Using F() Macro Credits: @zt30 and @fab672000. Merged PR: #109
This commit is contained in:
21
IRremote.h
21
IRremote.h
@@ -17,6 +17,13 @@
|
||||
#ifndef IRremote_h
|
||||
#define IRremote_h
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include <Arduino.h>
|
||||
#else
|
||||
#include <WProgram.h>
|
||||
#endif
|
||||
|
||||
|
||||
// The following are compile-time library options.
|
||||
// If you change them, recompile the library.
|
||||
// If DEBUG is defined, a lot of debugging output will be printed during decoding.
|
||||
@@ -28,13 +35,15 @@
|
||||
// Results returned from the decoder
|
||||
class decode_results {
|
||||
public:
|
||||
int decode_type; // NEC, SONY, RC5, UNKNOWN
|
||||
union {
|
||||
unsigned int panasonicAddress; // This is only used for decoding Panasonic data
|
||||
unsigned int sharpAddress; // This is only used for decoding Panasonic data
|
||||
int8_t decode_type; // NEC, SONY, RC5, UNKNOWN
|
||||
int8_t bits; // Number of bits in decoded value
|
||||
unsigned long value; // Decoded value
|
||||
|
||||
union { // This is used for decoding Panasonic and Sharp data
|
||||
unsigned int panasonicAddress;
|
||||
unsigned int sharpAddress;
|
||||
};
|
||||
unsigned long value; // Decoded value
|
||||
int bits; // Number of bits in decoded value
|
||||
|
||||
volatile unsigned int *rawbuf; // Raw intervals in .5 us ticks
|
||||
int rawlen; // Number of records in rawbuf.
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user