Skip to content

IRsendRaw #114

@mafokken

Description

@mafokken

I'm trying to use NEC, NECx, and raw IR protocols in the same arduino program.

I tried the following code and it gave me the following error - 'IRsendRaw' does not name a type; did you mean 'IRsendRC6'?

#include <IRLibAll.h>
IRsendRaw mySender;
(The same happens with IRLib2.h)

.
But this does work:

#include <IRLibSendBase.h> //We need the base code
#include <IRLib_P01_NEC.h>
#include <IRLib_P07_NECx.h>
#include <IRLib_HashRaw.h> //I think this one needs to be last
#include <IRLibCombo.h> //We need the combiner

IRsendRaw mySender;

.
Not sure if this is a bug or just me not reading the manual good enough.

.
As a side note, with IRLibAll and IRLib2, I couldn't get this to work:

#include <IRLibAll.h>
IRsend mySender;

void loop()
{
mySender.sendRaw(myRawIRCodesData,36,36)
}
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions