I have a program on the table can be used,But not on the laptop,Laptop's library are the same as the desk,but Out of service, Arduino shows
In file included from C:\Users\r5823\OneDrive\獢\RTC_Date_Time_on_LCD_Both_I2C\RTC_Date_Time_on_LCD_Both_I2C.ino:4:0:
C:\Users\r5823\OneDrive\文件\Arduino\libraries\DS1307RTC/DS1307RTC.h:19:22: error: 'tmElements_t' has not been declared
static bool read(tmElements_t &tm);
^
C:\Users\r5823\OneDrive\文件\Arduino\libraries\DS1307RTC/DS1307RTC.h:20:23: error: 'tmElements_t' has not been declared
static bool write(tmElements_t &tm);
^
C:\Users\r5823\OneDrive\獢\RTC_Date_Time_on_LCD_Both_I2C\RTC_Date_Time_on_LCD_Both_I2C.ino: In function 'void loop()':
RTC_Date_Time_on_LCD_Both_I2C:38: error: 'tmElements_t' was not declared in this scope
RTC_Date_Time_on_LCD_Both_I2C:42: error: expected primary-expression before ')' token
RTC_Date_Time_on_LCD_Both_I2C:47: error: expected primary-expression before '.' token
RTC_Date_Time_on_LCD_Both_I2C:49: error: expected primary-expression before '.' token
RTC_Date_Time_on_LCD_Both_I2C:51: error: expected primary-expression before '.' token
RTC_Date_Time_on_LCD_Both_I2C:55: error: expected primary-expression before '.' token
RTC_Date_Time_on_LCD_Both_I2C:57: error: expected primary-expression before '.' token
RTC_Date_Time_on_LCD_Both_I2C:59: error: expected primary-expression before '.' token
RTC_Date_Time_on_LCD_Both_I2C:59: error: 'tmYearToCalendar' was not declared in this scope
"Wire.h"找到多個程式庫
已使用: C:\Users\r5823\OneDrive\桌面\arduino-1.8.4\hardware\arduino\avr\libraries\Wire
未使用: C:\Users\r5823\OneDrive\文件\Arduino\libraries\Wire
exit status 1
'tmElements_t' was not declared in this scope