Hello I'm new to Coding in Arduino, I Have a question about using IR remote Library's and how to include them in my "sketch"
If I Downloaded a Library for IR remotes, how do I have my code respond to the input of codes being sent by the remote that I want decoded by the library. How do I even know the final values its decoding to Include to my code to respond to?
Is a library even recommended for this situation?
If not !!Help me understand what to do!!
Also, Should I use the Bluetooth instead if so Same situation...
In most cases you would connect an IR receiver to your Arduino and use one of the example sketches (like ReceiveDump) to display each received code on Serial Monitor. You can then use that data, copied from Serial Monitor to your sketch, to recognize the same code again or to send the code. This only works if you have a working remote for the device you want to control.
I'd guess that someone already decoded the protocol of the XBox controller and you can find the information with a Google search. The problem with IR remotes is that there are HUNDREDS of protocols and THOUSANDS of button codes. You might get lucky and find the data by searching .
You use the library to read the IR codes that are received.
You send them to the Serial Monitor so you can see which codes are associated with a certain button.
You write code that reacts on the hex codes.
Similar; but you don't need a library. You first determine what you receive from the BlueTooth when you do certain things. Next you code around it for your application.