mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2026-09-21 20:39:35 +00:00
rp
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
IR_DecoderRaw::IR_DecoderRaw(const uint8_t pin, uint16_t addr, IR_Encoder *encPair) : encoder(encPair)
|
||||
{
|
||||
setPin(pin);
|
||||
pinMode(pin, INPUT_PULLUP);
|
||||
id = addr;
|
||||
prevRise = prevFall = prevPrevFall = prevPrevRise = 0;
|
||||
if (encPair != nullptr)
|
||||
@ -74,7 +75,8 @@ void IR_DecoderRaw::isr()
|
||||
oldTime = time_;
|
||||
|
||||
FrontStorage edge;
|
||||
edge.dir = port->IDR & mask;
|
||||
// edge.dir = port->IDR & mask;
|
||||
edge.dir = digitalRead(pin);
|
||||
edge.time = time_;
|
||||
|
||||
subBuffer.push(edge);
|
||||
|
||||
Reference in New Issue
Block a user