Hey all, I am trying to hook up this ESP8266 to receive a signal from my kids’ Magiquest wand.
I have a working sketch using IRemoteESP8266 that decodes the signal from the wand using the same GPIO pin and spits out the code to the serial monitor…so I know that the IR receiver works.
I added -D DECODE_MAGIQUEST=true (which is the build flag from IRemoteESP8266) to patformio.ini
but I don’t get any output on the serial monitor when running WLED.
is there another spot that I need to configure to get wled to pick up the signal?
I would start with:
Line 44 in wled.h
43 // to toggle usb serial debug (un)comment the following line
44 //#define WLED_DEBUG
Change line 44 to: #define WLED_DEBUG and see if you get your serial output.
Thanks for the head’s up…I hadn’t dug that far yet…
uncommented it and reuploaded, and now I get the debug loop, but no output.
the stripped down version of the sketch that works is
#include <IRrecv.h>
#include <IRremoteESP8266.h>
#include <IRac.h>
#include <IRtext.h>
#include <IRutils.h>
IRrecv irrecv(kRecvPin, kCaptureBufferSize, kTimeout, true);
decode_results results; // Somewhere to store the results
const uint16_t kRecvPin = 4;
const uint32_t kBaudRate = 115200;
const uint16_t kCaptureBufferSize = 1024;
const uint8_t kTimeout = 15;
void setup()
{
irrecv.setUnknownThreshold(kMinUnknownSize);
irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
client.poll();
if (irrecv.decode(&results))
{
Serial.print(resultToHexidecimal(&results));
}