Last active
July 13, 2026 17:15
-
-
Save ByronScottJones/3632fbc1a1ce8735298051fd43c33b81 to your computer and use it in GitHub Desktop.
Esp32 IR test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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