A device that remembers the last IR signal that was taught to it and triggers some action when the same signal is received again.
Note: The program is written for MPLab-C18
compiler for Microchip's PIC 18F family micro-controllers.
To teach it,
- Start the device.
- Point any IR remote (TV/AC/Toy etc.) to the reader.
- Press a button till read-completed LED glows.
To use it,
- Put your code below while burning to device,
void doStuff() {
// do whatever you want here
}
- Press the same button on the remote again.