|
楼主 |
发表于 2022-7-8 16:20
|
显示全部楼层
我有导入了 Ds1302 这个库。我把那个DS1302的S改成s就报这个错了。
Arduino:1.8.19 (Windows 10), 开发板:"Arduino Nano, ATmega328P (Old Bootloader)"
C:\Users\15433\Desktop\arduino\11\11.ino: In function 'void loop()':
11:598:21: error: 'class Ds1302' has no member named 'getTimeStr'
display.println(rtc.getTimeStr());
^~~~~~~~~~
11:601:21: error: 'class Ds1302' has no member named 'getDOWStr'
display.println(rtc.getDOWStr());
^~~~~~~~~
11:609:21: error: 'class Ds1302' has no member named 'getDateStr'; did you mean 'getDateTime'?
display.println(rtc.getDateStr(FORMAT_LONG, FORMAT_LITTLEENDIAN, '/'));
^~~~~~~~~~
getDateTime
11:609:32: error: 'FORMAT_LONG' was not declared in this scope
display.println(rtc.getDateStr(FORMAT_LONG, FORMAT_LITTLEENDIAN, '/'));
^~~~~~~~~~~
11:609: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:609: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'
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
|
|