陈冬冬 发表于 2013-3-31 12:41:29

【求助】arduino 1.5.2 出现#include <Time.h>执行不了的问题

下了arduino 1.5.2 IDE 加入time库的时候总是失败啊。。

time_1st.ino: In function 'void setup()':
time_1st:6: error: 'setTime' was not declared in this scope
time_1st.ino: In function 'void digitalClockDisplay()':
time_1st:16: error: 'hour' was not declared in this scope
time_1st:17: error: 'minute' was not declared in this scope
time_1st:18: error: 'second' was not declared in this scope
time_1st:20: error: 'day' was not declared in this scope
time_1st:22: error: 'month' was not declared in this scope
time_1st:24: error: 'year' was not declared in this sc

有google了,在arduino.cc看到说是要把time.cpp的<WProgram.h> 改成<Arduino.h>。但是我看time.cpp已经解决了这个问题。。
求高人指点。。谢谢!

gaotian 发表于 2013-4-2 11:41:59

1.5.2 。。。。

mostblack 发表于 2015-6-28 14:28:58

求TIME库。。。

sde 发表于 2017-7-25 18:22:39

同问,楼主解决了吗?
页: [1]
查看完整版本: 【求助】arduino 1.5.2 出现#include <Time.h>执行不了的问题