ZISHAN — ESP32 simulation

An interactive ESP32 circuit simulation you can run free in your browser on Velxio, by zishanansari94.

Components

Sketch code

#include <IRremote.hpp>

#define IR_RECEIVE_PIN 32

void setup()
{
    Serial.begin(115200);

    IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);

    Serial.println("======================");
    Serial.println("IR RECEIVER TEST");
    Serial.println("READY");
    Serial.println("======================");
}

void loop()
{
    if (IrReceiver.decode())
    {
        Serial.println("IR SIGNAL RECEIVED!");

        Serial.print("Protocol: ");
        Serial.println(IrReceiver.decodedIRData.protocol);

        Serial.print("Address: 0x");
        Serial.println(
            IrReceiver.decodedIRData.address,
            HEX
        );

        Serial.print("Command: 0x");
        Serial.println(
            IrReceiver.decodedIRData.command,
            HEX
        );

        IrReceiver.resume();
    }
}