Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ir repeat code detection #206

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

fletsche
Copy link

Fixes #205
I actually do not know whether Edzelf's original IR routine could also interpret other IR codes (non NEC style). I could not test that because I only have NEC style RCs.
My routine offers an addition to the config string for IR commands. If the commands are not modified repeat codes do not trigger additional commands. If you add a / XXX (where XXX is a integer value > 0) to the command this should result in a repetition of the command after XXX ms. However the repetition interval is restricted by the time it takes until scanir() gets called again, so very short repetition times are useless and might result in unpredictable intervals.

An example from my config:

ir_301C = downvolume = 1/100 # Apple Remote -
ir_501C = upvolume = 1/100 # Apple Remote +
ir_601C = uppreset = 1/1000 # Apple Remote >>|
ir_901C = downpreset = 1/1000 # Apple Remote |<<
ir_A01C = mute # Apple Remote >||
ir_C01C = mute # Apple Remote MENU

I hope you find this useful too!

@SinglWolf
Copy link

Great idea! I was also puzzled that there was no function to hold the keys of traditional commands, especially the volume control. I have a remote control from an old GoldStar TV. I included your add-ons.
Everything works great!!! Thank You!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NEC style IR repeat codes are not detected
2 participants