neu-rah / ArduinoMenu

Arduino generic menu/interactivity system
GNU Lesser General Public License v2.1
948 stars 191 forks source link

ir remote support #271

Open clear-sky opened 4 years ago

clear-sky commented 4 years ago

hi sir please support ir remote if possible

neu-rah commented 4 years ago

Hi!

its a thing I've never used on other projects, can you point out some nice IR library?

clear-sky commented 4 years ago

hi https://github.com/ukw100/IRMP

neu-rah commented 4 years ago

this might be usable with menu code ctrl... on the loop one can read the IR input and issue menu commands to the navigation root, without the need of a specific driver.

example here using buttons with debounce, along with serial IO

https://github.com/neu-rah/ArduinoMenu/blob/master/examples/codeCtrl/codeCtrl/codeCtrl.ino

commands are here https://github.com/neu-rah/ArduinoMenu/blob/master/src/menuBase.h#L89

note: scroll commands are not implements (its automatic) and left/right commands are not implemented at all, but it supports numeric index if your remote control has numeric buttons