Skip to content

Instantly share code, notes, and snippets.

@ByronScottJones
Last active July 13, 2026 17:15
Show Gist options
  • Select an option

  • Save ByronScottJones/3632fbc1a1ce8735298051fd43c33b81 to your computer and use it in GitHub Desktop.

Select an option

Save ByronScottJones/3632fbc1a1ce8735298051fd43c33b81 to your computer and use it in GitHub Desktop.
Esp32 IR test
#include <IRremote.h>
const int IR_RECEIVE_PIN = 15; // Change this to the GPIO pin you used
void setup() {
Serial.begin(115200);
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
Serial.println("Ready to receive IR signals...");
}
void loop() {
if (IrReceiver.decode()) {
Serial.println(IrReceiver.decodedIRData.decodedRawData, HEX);
IrReceiver.resume();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment