Enthernet Code
DIIDevHeads IoT Integration Server
•Created by Camila_99$$ on 9/12/2024 in #code-review
How to Execute a Timed LED On/Off Sequence Using millis() Function
@Camila_99$$ Hello I see what you’re trying to achieve, and it’s great that you’re using
millis()
for non-blocking timing to allow other actions to run in parallel. However, there seems to be a logic issue in your code with the intervals and the use of the ternary operators. The conditions are overlapping and might be causing unexpected behavior.
Try this out
2 replies