Optimizing Arduino Code: no setup(), no loop() ⛔

When you write Arduino code, you usually split your code into two parts: the setup() function that runs once, at the beginning of the program, and the loop() function that runs repeatedly. But did you know that it doesn’t always have to be this way? In this video you will learn how to write Arduino code without setup() and loop(), and see some of the benefits that come with it (such as reduced code size), as well as some solutions to common challenges with this method. Arduino Port Registers Reference: :// Arduino main() function source code: #L33 The code from the video: The Arduino Blink Playground:
Back to Top