Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Compiler errors 经验证的代码赢得';t上传至Arduino Uno R3_Compiler Errors_Arduino - Fatal编程技术网

Compiler errors 经验证的代码赢得';t上传至Arduino Uno R3

Compiler errors 经验证的代码赢得';t上传至Arduino Uno R3,compiler-errors,arduino,Compiler Errors,Arduino,所以我只是在邮件中得到了我的LED矩阵,我试图上传这个指令表中的代码,但我一直收到错误 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()'

所以我只是在邮件中得到了我的LED矩阵,我试图上传这个指令表中的代码,但我一直收到错误

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

代码是因为我仍然不知道如何在此处发布代码

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


在您提到的instructables中,它们有一个名为libary.zip文件的附件。下载并解压缩zip文件,并将内容复制到arduino libraries文件夹中。一旦你这样做了,你的代码应该能正确编译。

所以这就是问题所在,我不知何故将库放在了我的代码文件夹中。如果这个答案解决了你的问题,那么请确保你将它标记为已接受的答案。这将有助于寻找未回答问题的其他人。