Can the loop() function be used to replace the functionality of the setup() function?

Ánh Dương

New member
Can the loop() function be used to replace the functionality of the setup() function?
A. Yes, it can
B. No, it cannot
C. Yes, it can, but only for certain Arduino Boards
D. Yes, it can, but only for a limited time frame
 
Answer: A
Explanation: Yes, the loop() function can replace the setup() function completely, theoretically, since both the loop() function and the setup() functions are custom predefined functions in the Arduino Environment. However, this would result in more work from the developer’s end since he/she would have to find a way to make configuration code run only once.
 

Tìm kiếm

Back
Top