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:
https://web.archive.org/web/202108130...
Arduino main() function source code:
https://github.com/arduino/ArduinoCor...
The code from the video:
https://wokwi.com/projects/3307127700...
The Arduino Blink Playground:
https://wokwi.com/arduino/libraries/d...
Watch video Optimizing Arduino Code: no setup(), no loop() ⛔ online without registration, duration hours minute second in high quality. This video was added by user Wokwi 25 April 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 204,488 once and liked it 7 thousand people.