What is the secret of the arduino `yield()`function?
问题 The Arduino docs explain yield() at https://www.arduino.cc/en/Reference/Scheduler with regards to the Due. Apparently it is part of the Scheduler library: #include <Scheduler.h> However, I can call yield() on my Nano or ESP8266 without including the Scheduler lib -- but only in my main program, not inside include files. Also, the include does not work on my non-Dues. What's the secret that I'm missing about yield() or- what does yield() do on Arduino platforms other than Due? 回答1: However, I