|
Arduino:1.8.19 (Windows 10), 开发板:"Arduino Nano, ATmega328P (Old Bootloader)"
C:\Users\15433\Desktop\arduino\11\11.ino: In function 'void loop()':
11:343:21: error: 'class Ds1302' has no member named 'getTimeStr'
display.println(rtc.getTimeStr());
^~~~~~~~~~
11:346:21: error: 'class Ds1302' has no member named 'getDOWStr'
display.println(rtc.getDOWStr());
^~~~~~~~~
11:354:21: error: 'class Ds1302' has no member named 'getDateStr'; did you mean 'getDateTime'?
display.println(rtc.getDateStr(FORMAT_LONG, FORMAT_LITTLEENDIAN, '/'));
^~~~~~~~~~
getDateTime
11:354:32: error: 'FORMAT_LONG' was not declared in this scope
display.println(rtc.getDateStr(FORMAT_LONG, FORMAT_LITTLEENDIAN, '/'));
^~~~~~~~~~~
11:354:45: error: 'FORMAT_LITTLEENDIAN' was not declared in this scope
display.println(rtc.getDateStr(FORMAT_LONG, FORMAT_LITTLEENDIAN, '/'));
^~~~~~~~~~~~~~~~~~~
C:\Users\15433\Desktop\arduino\11\11.ino:354:45: note: suggested alternative: '__ORDER_LITTLE_ENDIAN__'
display.println(rtc.getDateStr(FORMAT_LONG, FORMAT_LITTLEENDIAN, '/'));
^~~~~~~~~~~~~~~~~~~
__ORDER_LITTLE_ENDIAN__
exit status 1
'class Ds1302' has no member named 'getTimeStr'
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
这个arduino在验证时报错。这个要怎么改才好?
display.println(rtc.getTimeStr()); 这行代码变红了。 |
|