2012-08-15 71 views
1

所以我只是把我的LED在郵件矩陣和IM試圖從這個造說明http://www.instructables.com/id/Arduino-Processing-Audio-Spectrum-Analyzer/?ALLSTEPS上傳的代碼,但我不斷收到錯誤經過驗證的代碼將無法上傳到Arduino的烏諾R3

ArduinoCode:2: error: 'ht1632c' does not name a type 
ArduinoCode.cpp: In function 'void setup()': 
ArduinoCode:11: error: 'dotmatrix' was not declared in this scope 
ArduinoCode.cpp: In function 'void loop()': 
ArduinoCode:35: error: 'dotmatrix' was not declared in this scope 
ArduinoCode:35: error: 'BLACK' was not declared in this scope 
ArduinoCode:41: error: 'GREEN' was not declared in this scope 
ArduinoCode:107: error: 'ORANGE' was not declared in this scope 
ArduinoCode:131: error: 'RED' was not declared in this scope 
ArduinoCode:153: error: 'dotmatrix' was not declared in this scope 

的代碼http://www.instructables.com/files/orig/FSH/KZKA/GZ0BVJOC/FSHKZKAGZ0BVJOC.ino因爲我仍然不知道如何在此處發佈代碼

回答

2

您正在收到此錯誤消息,因爲您沒有該庫文件夾中的文件(該文件包含在程序中)。

在你提到的指令中,他們有一個名爲libary.zip文件的附件。下載並解壓zip文件並將內容複製到arduino庫文件夾中。一旦你做了它,你的代碼應該正確編譯。

+0

所以事實證明,這是問題,我不知何故將庫放在我的代碼文件夾。 – Tomtortoise 2012-08-16 13:21:22

+0

如果此答案解決了您的問題,請確保將其標記爲接受的答案。這將有助於其他正在尋找未解答問題的人解答。 – Sudar 2012-08-16 13:50:58

相關問題