Skip to content

Why there is a generalized IRac.cpp for Air Conditioning devices but not for other device types? #2062

Answered by NiKiZe
hem-bhagat-tark asked this question in Q&A
Discussion options

You must be logged in to vote

There is no need, and it would be to large.

With ACs you need to keep state, since a IR sequence is not just the button that is pressed, but all the data on the remotes display.

For TVs etc it is one code per button, no state is needed. (And how many different remotes are there?) There is collections for that kind of codes, that kind of data does not make sense to keep in a programming language.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@liudr
Comment options

Answer selected by crankyoldgit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants