Receiver.blink13(true) // enable blinking of the built-in LED when an IR signal is received Receiver.enableIRIn() // enable the receiver Serial.begin(9600) // begin serial communication with a baud rate of 9600 Unsigned long key_value = 0 // variable to store the pressed key value IRrecv receiver(RECEIVER_PIN) // create a receiver object of the IRrecv classĭecode_results results // create a results object of the decode_results class #define RECEIVER_PIN 2 // define the IR receiver pin IR remote protocol finder #include // include the IRremote library You can also try some other remotes that you have in your house and see if it can detect the protocol. With the code below you can identify which protocol your remote is using. is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on .Īlthough the library is quite old, new protocols are still being added (see the GitHub). Supplies Hardware components IR remote and receiver
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |