My pleasure! Thank you for watching and taking the time to comment.
@222sandiego4 жыл бұрын
Love the videos. Have helped a lot. I like the pasting instead of typing - reduces errors and keeps the flow. Would like to understand more the async timer. Also, can you post the code somewhere? Thanks again
@CheapControls4 жыл бұрын
Thanks for the reply and the comment on pasting over typing. I prefer to paste. It speeds up the videos also. I watch videos by Brad Traversy on programming and he types it out which is nice if you are following along. I wish more people would give me their opinions on this. I will probably start leaning toward cut an paste as I get my website better configured for people to download the code. I thought I had the code for this video up on www.cheapcontrols.com but I do not yet. I will try to get it on there soon. I will try to remember to comment here when it is up.
@ipadize4 жыл бұрын
i have a different question. I may want to be able to change the font using the device itself. So i created some buttons with the appropriate font name and i can change fonts of buttons etc. But how can i change the font of a button on another page? It only sees the buttons on the same page.
@CheapControls4 жыл бұрын
I have not tried that but, you could try and set the objects you want to change to global or maybe You could set a global variable and test for that value on page load.
@ipadize4 жыл бұрын
@@CheapControls thanks i will try that
@ipadize4 жыл бұрын
@@CheapControls doesnt seem to work or i do it wrong. i have every button and page globally and the variable as well but it doesnt get found on other pages
@ipadize4 жыл бұрын
@@CheapControls but i cound try to send something to the esp32 and then it sets the font
@CheapControls4 жыл бұрын
Sorry, I have not had time to try this out but I will try to look at it tonight. I hope you would not need to store something away from the physical display on an external device but that is another option.
@222sandiego4 жыл бұрын
The timer works great. Question/Challenge: how would one modify the code to create a countdown timer? Thanks
@CheapControls4 жыл бұрын
That is an interesting idea. Are you thinking of this running on a Nextion display or just a static timer that restarts every time you restart the Arduino? I have not been very good at uploading the code to the cheap controls website. If there is something specific complete the form on the cheap controls site and I will email you any file you ask for.
@222sandiego4 жыл бұрын
The timer would run on the display. My specific application is taking user input (from the Nextion) to specify the duration of a pump run and then displaying the time as a countdown timer on the Nextion. When the countdown timer completes the pump would stop (or any other action required at the completion of a countdown timer). The internet is replete with examples but none are as straightforward as it seems like it should be. Your help would be appreciated.
@CheapControls4 жыл бұрын
What is the time frame you are talking about, minutes hours days? This could be an interesting video.
@222sandiego4 жыл бұрын
I’d like the flexibility of user input configuring all three. Ideally with a daily / weekly recurrence option - but I’m dreaming here. My immediate need is to use input from the user via the Nextion to configure a countdown timer for hours / min / sec (and not rollover at 00:00:00) and execute something at the start and end (in my case a relay to start a pump and stop it when the countdown ends). You’d be an internet hero if you could make this simple. I’ve searched literally for two days and found very little (that I could understand anyway...). Maybe its just inherently a deceptively hard problem?
@CheapControls4 жыл бұрын
Sounds good. Consider going over to the Cheap Controls web page and entering a comment with your Email address so we can discuss this in more detail. If you don't want to do that I understand and will try to get a video out on this project next week.
@cristhiannasarioespinozaac55934 жыл бұрын
Amazing
@CheapControls4 жыл бұрын
Thanks for the compliment and for watching.
@claytonjandeliverio63482 жыл бұрын
does this code work on arduino uno?
@CheapControls2 жыл бұрын
It doesn't work very well but if perfect accuracy is not needed, it works ok.
@claytonjandeliverio63482 жыл бұрын
@@CheapControls if accuracy is need. do i have to install a specific library for its communication/Serial and what would it be?
@CheapControls2 жыл бұрын
No library. Millis is part of standard arduino code. Just use variables.
@CheapControls2 жыл бұрын
If you want accuracy you will need to add a Real time Clock chip