//初始化硬件相关配置void setup(){//设置板子D2为输出模型,可以输出电压pinMode(D2, OUTPUT);}//void loop(){digitalWrite(D2, HIGH); // Turn the LED on (HIGH is the voltage level)delay(1000); // Wait for a seconddigitalWrite(D2, LOW); // Turn the LED off by making the voltage LOWdelay(1000); // Wait for a second}
