A
Arduino12h ago
rana

Timer help for LED!

Hello, I just have a question about making timers for Arduinos, and being able to do so without delay. So I have implemented the millis() function and used that to make sure 1000 milliseconds has passed, however, an issue that I kept coming across was that with the serial. I found an old Arduino forum that helps relieve that issue, but I am curious as to why that is? Also, I am looking for criticism for my code(this for a robot club) What can I do to make this code better? What functions would I need to consider when making base classes for these inputs and outputs?(I understand its different for every device) or any insights in general! I am happy to hear your thoughts!
1 Reply
jim lee
jim lee10h ago
Are you tryting to make a class that blinks an LED? (Non blocking)

Did you find this page helpful?