Skip to content

IRsend::encodePioneer documentation might be misleading #1749

@shin10

Description

@shin10

Hi David,

thanks for this awesome library. I just tried it for the first time following the codes listed here and I'm super happy that my remote is working great.
Anyway, I had some issues on the way and thought I might leave a note.

A single code run as command works as expected:

irsend.sendPioneer(irsend.encodePioneer(0, command), 32, 1);

The docs in ir_Pioneer.cpp state

"A556+AF20" is an Address of 0xA556 & a Command of 0xAF20.

So I assumed the following call would be correct, but didn't work out:

irsend.sendPioneer(irsend.encodePioneer(address, command), 32, 1);

Running both codes as command in sequence does the trick:

        if (address) {
            irsend.sendPioneer(irsend.encodePioneer(0, address), 32, 1);
        }
        irsend.sendPioneer(irsend.encodePioneer(0, command), 32, 1);

So I think it's rather commandA + commandB?
Since I don't know anything about NEC I might have gotten something else completely wrong.

Keep up your great work. :)

Kind regards

Michael

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions