问题描述
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN,HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN,LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
我是 Arduino 新手,有非常基本的 C 经验,但也开始学习 C++,因为我听说 Arduino 基于 C++。 我现在的关键问题是上面的代码如何在没有“while”或“for”关键字的情况下实现循环(永远运行代码)?或者是否有一个名为“loop”的特殊函数可以发挥魔力?