就这:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C mylcd(0x3F ,16,2);
void setup()
{
mylcd.init();
mylcd.backlight();
mylcd.setCursor(0, 0);
mylcd.print("Fan OFF");
mylcd.setCursor(0, 1);
mylcd.print("Shark OFF");
}
提示:Arduino:1.8.19 (Windows 10), 开发板:"Arduino Uno"
C:\Users\Ding\AppData\Local\Temp\cc7FXrkx.ltrans0.ltrans.o: In function `main':
C:\Users\Ding\Desktop\H BXLD\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
exit status 1
为开发板 Arduino Uno 编译时出错。
(一脸懵逼的我)
(有没有人解决一下)
|