mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-06-28 05:09:40 +00:00
add pin change
This commit is contained in:
10
IR_Decoder.h
10
IR_Decoder.h
@ -27,7 +27,7 @@ class IR_Decoder : private IR_FOX {
|
||||
public:
|
||||
uint16_t addrSelf;
|
||||
|
||||
IR_Decoder(uint16_t addr, IR_Encoder* encPair = nullptr);
|
||||
IR_Decoder(const uint8_t isrPin, uint16_t addr, IR_Encoder* encPair = nullptr);
|
||||
~IR_Decoder();
|
||||
|
||||
// @brief Для прерывания
|
||||
@ -38,7 +38,7 @@ public:
|
||||
bool isOverflow() { return isBufferOverflow; };
|
||||
bool isReciving() { return isRecive; };
|
||||
// @brief Слушатель для работы isReciving()
|
||||
void listen();
|
||||
void listen();
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -101,7 +101,7 @@ public:
|
||||
String printData(uint8_t mode = 10) {
|
||||
return printBytes(data(), dataSize(), mode);
|
||||
}
|
||||
~Data(){};
|
||||
~Data() {};
|
||||
private:
|
||||
void ini() override {
|
||||
_addrFrom = (_data[1] << 8) | _data[2];
|
||||
@ -147,7 +147,7 @@ public:
|
||||
uint16_t getTune() { return _tune; };
|
||||
uint16_t errorCount() { return _errCount; };
|
||||
void resetAvaliable() { _isAvaliable = false; };
|
||||
private:
|
||||
private:
|
||||
void _set(uint16_t val) {
|
||||
_tune = val;
|
||||
_isAvaliable = true;
|
||||
@ -163,6 +163,8 @@ public:
|
||||
|
||||
|
||||
private:
|
||||
const uint8_t isrPin;
|
||||
|
||||
IR_Encoder* encoder;
|
||||
bool isPairSending = false;
|
||||
bool IsPairSendLOW = false;
|
||||
|
Reference in New Issue
Block a user