In this lesson, we will first explain the principle of common IR communication protocols. Then we will write a small program to test the IR code of each button in a remote. Finally we will use OK button in the remote to turn on/off an LED.
http://osoyoo.com/?p=25998
...
https://www.youtube.com/watch?v=okhFt256bwI