Robofun 機器人論壇

 找回密碼
 申請會員
搜索
熱搜: 活動 交友 discuz
查看: 8476|回復: 1
打印 上一主題 下一主題

編譯一直出現這個錯誤 was not declared in this scope

[複製鏈接]
跳轉到指定樓層
1#
發表於 2018-9-11 17:45:36 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
Arduino:1.8.6 (Windows Store 1.8.14.0) (Windows 10), 開發板:"Arduino Leonardo"

D:\~work\_practice\FSR406\??蔥\FSRMIXv1\FSRMIXv1.ino: In function 'void setup()':

FSRMIXv1:103:16: error: 'EEPROMRead' was not declared in this scope

D:\~work\_practice\FSR406\??蔥\FSRMIXv1\FSRMIXv1.ino: In function 'void loop()':

FSRMIXv1:109:11: error: 'Readline' was not declared in this scope

FSRMIXv1:129:17: error: 'EEPROMRead' was not declared in this scope

FSRMIXv1:134:19: error: 'Positioning' was not declared in this scope

FSRMIXv1:138:22: error: 'WorkSpeedDebug' was not declared in this scope

FSRMIXv1:143:26: error: 'PositioningDebug' was not declared in this scope

FSRMIXv1:147:24: error: 'WorkSpeedDebug' was not declared in this scope

D:\~work\_practice\FSR406\??蔥\FSRMIXv1\Combination.ino: In function 'void Combination()':

Combination:9:6: error: 'comb' was not declared in this scope

D:\~work\_practice\FSR406\??蔥\FSRMIXv1\DDecide.ino: In function 'void decide()':

DDecide:2:5: error: 'FSRData' was not declared in this scope

D:\~work\_practice\FSR406\??蔥\FSRMIXv1\EEPROMRead.ino: In function 'void EEPROMRead()':

EEPROMRead:5:3: error: 'comb' was not declared in this scope

exit status 1
'EEPROMRead' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


這是一個Arduino內有幾個其他標籤
這是檔案名稱:FSRMIXv1
不知道該怎麼修這個錯誤??
2#
發表於 2018-9-13 10:13:40 | 只看該作者
試著在程式最前面加上
#include <EEPROM.h>
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

小黑屋|手機版|Archiver|機器人論壇 from 2005.07

GMT+8, 2024-12-4 02:01 , Processed in 0.373622 second(s), 6 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表