Hi,
I'm struggling with the idea of being able verify if a certain key on the remote is pressed. The remote I have sends a non-standard IR signal, leaving raw data as the only option. I can receive the raw string values and send them as it is and this works perfectly. However, how to know if a certain key is pressed, so an associated action can be formulated. The rawRecv example prints a string value to the terminal. Is there a way to compare or convert this to some unique number so it can be checked to identify a specific keypress.
Following is the output from the terminal for reference:
Do a cut-and-paste of the following lines into the
designated location in rawSend.ino
#define RAW_DATA_LEN 68
uint16_t rawData[RAW_DATA_LEN]={
8798, 4570, 490, 710, 434, 710, 414, 734,
430, 714, 410, 738, 430, 714, 434, 710,
434, 1782, 410, 1802, 414, 1806, 410, 1806,
410, 1802, 410, 1806, 410, 1830, 386, 1806,
410, 734, 410, 734, 414, 1802, 438, 710,
410, 738, 406, 734, 438, 710, 410, 734,
434, 710, 438, 1778, 414, 730, 434, 1786,
410, 1802, 434, 1782, 414, 1802, 410, 1802,
438, 1778, 410, 1000};
Any help is appreciated.