Im new on arduino world. I've been trying to send a IR code to my BENQ projector (0xC40BF // ON command 32 bits), but the send code its different after to up the sketch on my Attiny85. Using Arduino Uno is just neccesari "irsend.sendNEC(0xC40BF , 32) " with old IRremote library, and works ok. the parametters are so diferent on the versions.
CODE FROM: groundFungus
#include <IRremote.h>
const byte butonPin = 2;
const byte IRPin = 1;
void setup()
{
pinMode(butonPin, INPUT_PULLUP);
IrSender.begin(IRPin);
}
void loop()
{
static bool lastButtonState = HIGH;
bool buttonState = digitalRead(butonPin);
if (buttonState != lastButtonState)
{
if (buttonState == LOW)
{
IrSender.sendNEC(0x00,0xC40BF , 1);
}
lastButtonState = buttonState;
}
}
Parameters:
uint16_t aAddress
uint8_t aCommand
uint_fast8_t aNumberOfRepeats
-
bool aIsRepeat = false
How am I supposed to send the 32 bit code?