I know this is mostly a preffernce question but im looking for the fastest possible coding technique (Most effiecient).
I am trying to output received IR remote values onto a tellymate to set timers for relays and store the timer values to the onboard EEprom. Using a software RTC, the relays will toggle when the input time is reached.
Should i use a conditional while statement? conditional if statement? or a simple switch case?
or any other suggestions?
If I read your question it is not clear to me what you want to do. You want to control some relay with a remote control. That is what I understood. Can you rephrase your question in more detail. e.g. What do you want to control with the relay's? What is the user story?
What i want to do with the relays is irrelevant to the question.
I am asking what kind of coding technique should be used when a user uses a IR remote to program times to toggle the relays. The programmed times by the user need to be saved to the eeprom and fetched for toggling the relays when the programmed time is reached. I will be using a software RTC to keep track of time and date so the programmed times can accuratly toggle at the appropriate times.
The tellymate is the GUI, the user will select through the options and program the times to toggle the relays using the IR remote, these times will then be saved to the eeprom and fetched for use to toggle the relays at the wanted times.
I was thinking about making an extensive conditional case statements but a conditional while statement might be better, or conditional if statements.
I would like some opinions/advise for going about this.
So i decided to use conditional if statments inside a while statement, working great so far, now just to finish the GUI code, embed it with the IR remote code as well as EEprom write and read.