莫小云 发表于 2015-11-15 19:01:58

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

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

Super169 发表于 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 static/image/common/back.gif
'DS1302' does not name a type

DS1302的库还要安装吗我直接放在文件夹里不行吗?能不能给个安装的教程
页: [1]
查看完整版本: Arduino 1302日期程序下载编译时的问题