Robofun 機器人論壇

標題: 編譯一直出現這個錯誤 was not declared in this scope [打印本頁]

作者: modico    時間: 2018-9-11 17:45
標題: 編譯一直出現這個錯誤 was not declared in this scope
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
不知道該怎麼修這個錯誤??

作者: 超新手    時間: 2018-9-13 10:13
試著在程式最前面加上
#include <EEPROM.h>




歡迎光臨 Robofun 機器人論壇 (https://robofun.net/forum/) Powered by Discuz! X3.2