How to change rc5 protocol by NEC protocol

Hello guys

I have a sketch "DS3231_Alarms_Temperature_RemoteControl" made for an rc5 Protocol Control and would like to use it with an NEC Protocol Control, like the KEYES (china) Controls, but I can't.

I've tried to make changes but nothing done; My knowledge is little, so I would like your help, please.

Here is the website link: Arduino + DS3231 RTC with alarms, temperature monitor & remote control

The code is attached.

I thank everyone

DS3231_Alarms_Temperature_RemoteControl.ino (22.2 KB)

Anyone to help?

IR remote control consists of a sender (control) and receiver (tv set...). If you want to change the protocol, you have to change both ends. This requires that you have access to the source code of both devices.

I would remove the RC5 code in the sketch and use one of the IR libraries:

IRremote by shirriff: GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols
IRLib2: GitHub - cyborg5/IRLib2: Library for receiving, decoding, and sending infrared signals using Arduino
IRRemoteControl by Cristiano Borges: GitHub - cristbjesus/IRRemoteControl: Lightweight Arduino Library for send/receive IR signal.

@DrDiettrich
The sketch is attached and was made for the rc5 protocol and I would like to use it with the NEC protocol. What's more, it does not use any IR remote control libraries.

I did all the decoding of the remote control.

I tried to replace, for example, all rc5 with nec, in code, but it didn't work.

@ johnwasser
Thank you for making all these libraries available here, but this is beyond my knowledge.

I don't know what to change or add to the sketch.

Actually, I'd like to use the sketch with the 'IRremote' library which, it seems to be one of the best or the best.

If you can give me a hint of what to change or add to the sketch, I really appreciate it.

Thank you all

If you don't want to use the libraries, you're on your own. Find out how the protocol works and implement your own.

Example code comes with the library, look there how things are done.

Would a good heart do that to me?

It is not lack of interest, but difficulties even though I have.

It could be with any of the mentioned libraries.

The decoding I can do. Remembering it's for the NEC protocol

appreciate...