add pin change

This commit is contained in:
2023-11-30 16:24:43 +03:00
parent 4f6482ec2a
commit 78f8a77f72
2 changed files with 9 additions and 7 deletions

View File

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