极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 25691|回复: 3

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

[复制链接]
发表于 2013-3-31 12:41:29 | 显示全部楼层 |阅读模式
下了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已经解决了这个问题。。
求高人指点。。谢谢!
回复

使用道具 举报

发表于 2013-4-2 11:41:59 | 显示全部楼层
1.5.2 。。。。
回复 支持 反对

使用道具 举报

发表于 2015-6-28 14:28:58 | 显示全部楼层
求TIME库。。。
回复 支持 反对

使用道具 举报

发表于 2017-7-25 18:22:39 | 显示全部楼层
同问,楼主解决了吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-10 12:51 , Processed in 0.035323 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表