1

所以我刚刚在邮件中收到了 LED 矩阵,我试图从这个可指导的http://www.instructables.com/id/Arduino-Processing-Audio-Spectrum-Analyzer/?ALLSTEPS上传代码,但我一直收到错误

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因为我仍然不知道如何在这里发布代码

4

1 回答 1

2

您收到此错误消息是因为您在库文件夹中没有该文件(包含在您的程序中)。

在您提到的教科书中,他们有一个名为 libary.zip 文件的附件。下载并解压 zip 文件并将内容复制到 arduino 库文件夹中。一旦你这样做了,你的代码应该可以正确编译。

于 2012-08-15T12:53:03.427 回答