void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(6, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(6, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(6, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
1. Blink
编程语言: C/C++(Arduino)
软件工具:Arduino IDE 1.8.4
创建时间:2018/11/05
作者: | 戴昂 |
立即注册