极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 11629|回复: 3

Arduino 1302日期程序下载编译时的问题

[复制链接]
发表于 2015-11-15 19:01:58 | 显示全部楼层 |阅读模式
DS1302_Example:26: error: 'DS1302' does not name a type
DS1302_Example.ino: In function 'void print_time()':
DS1302_Example:32: error: 'Time' was not declared in this scope
DS1302_Example:32: error: expected `;' before 't'
DS1302_Example:35: error: 't' was not declared in this scope
DS1302_Example:46: error: 't' was not declared in this scope
DS1302_Example.ino: In function 'void setup()':
DS1302_Example:55: error: 'rtc' was not declared in this scope
DS1302_Example.ino: In function 'void loop()':
DS1302_Example:86: error: 'Time' was not declared in this scope
DS1302_Example:86: error: expected `;' before 't'
DS1302_Example:87: error: 'rtc' was not declared in this scope
DS1302_Example:87: error: 't' was not declared in this scope
回复

使用道具 举报

发表于 2015-11-16 11:05:18 | 显示全部楼层
'DS1302' does not name a type <- 明顯是認不到 DS1302 的庫吧.

你有安裝 DS1320 的庫嗎?  放在那裡?  程式中有 include 嗎?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-11-23 23:10:50 | 显示全部楼层
Super169 发表于 2015-11-16 11:05
'DS1302' does not name a type

DS1302的库还要安装吗  我直接放在文件夹里不行吗?能不能给个安装的教程
回复 支持 反对

使用道具 举报

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

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-8 01:00 , Processed in 0.062163 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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