Replacing Buttons with IR Remote Control

Greetings to all

I have a sketch "Arduino Matrix Clock" which, as the name implies, is a clock with 4 LED Matrix + DS3231 + 2 Buttons.

As I understand (correct me if I'm wrong), to enter adjustment mode, keep pressing both buttons simultaneously, then press one button to increment and the other to set.

So I would like to replace the Buttons with an NEC protocol IR Remote Control (like this one from ebay: https://www.ebay.com/itm/KEYES-Infrared-IR-Wireless-Remote-Control-Module-Kits-for-Arduino-Robot-Car/133070234737), so that, to set the clock, I would press, for example, the OK key on the control, then to adjust the hour and minutes, I would press the number keys. By the way, someone here could choose for me!

I'm here asking you, because I don't have enough knowledge to do that.

The project site is this: Arduino Matrix Clock

And the sketch is attached.

If anyone can help me, I'd be very grateful,

Daniel

ArduinoMatrixClock.ino (15.7 KB)

TOPIC MOVED.

You may want to READ THIS for future reference.
It will help you get the best out of the forum.

Bob.

Thanks bob

In my eagerness to make the post, I certainly put it in the wrong section;

Please, where did you move the topic?

Can you help me in solving the issue?

Scroll up and see where I moved it to. :wink:

I am not smart enough to help you much that's why it got moved to where you may get some decent answers.

Bob.

@Bob

Thanks for kindly moving the topic!

You are certainly smart, but you didn't have the knowledge to help me!

hug

Dancopy:
to set the clock, I would press, for example, the OK key on the control, then to adjust the hour and minutes, I would press the number keys

Define what this means. To set minutes, say, will the time increment as before only now the '2' key is pressed repeatedly? Or, to set minutes at 43 will the '4' key and '3' key be pressed? How will the switch from hours to minutes look?

It'd probably be a good idea to familiarize yourself with the IRremote library.