IR remote control-Kogna

Moderators: TomKerekes, dynomotion

katiefangffs
Posts: 14
Joined: Sat Feb 17, 2024 9:57 am

Re: IR remote control-Kogna

Post by katiefangffs » Mon Feb 26, 2024 6:20 am

Hi,

the eariler code is the Arduino code that decodes the IR "remote", where the buttons can then be defined as :

#define BUTTON_UP 0xFF38C7
#define BUTTON_DOWN 0xFFB847
#define BUTTON_ONOFF 0xFFF00F
#define BUTTON_1 0xFF20DF
#define BUTTON_2 0xFFA05F
#define BUTTON_3 0xFF609F
#define BUTTON_4 0xFF7887
#define BUTTON_5 0xFFE01F
#define BUTTON_6 0xFF10EF
#define BUTTON_7 0xFF906F
#define BUTTON_8 0xFFD827

When you mentioned decoding the "sensor", were you referring to the IR receiver that captures and interprets the signals transmitted by the remote?

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: IR remote control-Kogna

Post by TomKerekes » Mon Feb 26, 2024 4:32 pm

No you aren't showing the code that reads/decodes the sensor. Only code that calls an object that reads the sensor and uses the result. There is no protocol or timing information in the code you are showing. You would have to look inside the object to see what it is doing and how. That is probably in a file called IRremote.cpp
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply