Replies: 2 comments 6 replies
-
Try using the Example code: here |
Beta Was this translation helpful? Give feedback.
5 replies
-
Okay.. with an instantiated IRac class ... how can I call the "normal" functions that exist in, for example IRFujitsuAC ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
How to instantiate an AC object globally, and then use the appropriate class IRFujitsuAC / IRDaikinESP / etc / whatever, based on a config option?
Something like:
int irLED = 4;
Generic ac; // accessible from everywhere
void setup() {
// . . . load config class
if (cfg.ACType == 1) {
ac.LoadAC(IRDaikinESP, irLED);
} else {
ac.LoadAC(IRFujitsuAC, irLED);
}
ac.begin();
}
Beta Was this translation helpful? Give feedback.
All reactions