I'm creating a timer. Pressing a button requires it to switch. However, if you press the same button on the remote control, the signals will be different. Example: 21, 0, 21, 0.
4 presses - different answers.
Console:
Decoded Raw Data: 21
Protocol=NEC Address=0x0 Command=0x15 Raw-Data=0xEA15FF00 32 bits LSB first
Decoded Raw Data: 0
Protocol=UNKNOWN Hash=0x0 1 bits (incl. gap and start) received
Decoded Raw Data: 21
Protocol=NEC Address=0x0 Command=0x15 Raw-Data=0xEA15FF00 32 bits LSB first
Decoded Raw Data: 21
Protocol=NEC Address=0x0 Command=0x15 Raw-Data=0xEA15FF00 32 bits LSB first
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.