09-19-2018 01:36 AM
Hi!
I am trying to set up a case where the user has the ability to set the input of a timer for my 3 LED lights RED, GREEN, BLUE.
The sort of input i am looking for is to prompt the user to set the period of lighting
For example
16:8 which is 16 hours of light 8 hours of darkness. I would hope this could run in a loop until either a stop button is pressed or the amount of cycles in days is set.
Can someone please offer some advice. I have tried different methods but cant seem to get a handle on how to approach the task
09-19-2018 02:12 AM
Not able to View your code (using Lower LV version)
Using Get Date and time in seconds function, subtract initial time from current time which will give you the time difference, continue the same till you reach target time (assume 16 hours of light), once you achieve 16 hours again re initiate the start time and subtract with current time for darkness
09-19-2018 02:24 AM
Sample solution. This may give you an hint.
09-19-2018 06:13 AM
Hello PalanivelIT, thank you for the hint solution. i will implement it now and see how it goes. and perhaps post some photos if i require
09-19-2018 09:08 AM
Not sure if that solves the issue, there is alot more going on in the interface that you might not be able to see 😞
09-19-2018 09:30 AM
How about something like this?