void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
}
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
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
Serial.println("Hello EEWorld!");
}
可以使用IDE自带的串口监视器进行查看:
引用: yangjiaxu 发表于 2024-9-11 11:53 用arduino真的不错,我觉得arduino就是为了避免重复造轮子,而且库也是真的多啊
集成库非常全,就是编译方式有点鸡肋,每次都是从头到尾编译