Skip to content

Ir repeat code detection#206

Open
fletsche wants to merge 8 commits intoEdzelf:masterfrom
fletsche:irRepeatCodeDetection
Open

Ir repeat code detection#206
fletsche wants to merge 8 commits intoEdzelf:masterfrom
fletsche:irRepeatCodeDetection

Conversation

@fletsche
Copy link
Copy Markdown

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
Copy Markdown

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