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
Ide Arduino与sainsmart sheild的失误_Ide_Arduino_Lcd - Fatal编程技术网

Ide Arduino与sainsmart sheild的失误

Ide Arduino与sainsmart sheild的失误,ide,arduino,lcd,Ide,Arduino,Lcd,这是我的Arduino代码,我用它作为我和我室友的状态指示器。在我决定能够编辑显示屏上的第一行之前,代码工作得非常好,这是sainsmart LCD键盘屏蔽。现在,当我在arduino IDE中验证代码时,我得到以下一组错误: sketch_jul22b.cpp:15:81: error: expected unqualified-id before '\x593a' sketch_jul22b.cpp:15:81: error: expected ‘}’ before '\x593a' ske

这是我的Arduino代码,我用它作为我和我室友的状态指示器。在我决定能够编辑显示屏上的第一行之前,代码工作得非常好,这是sainsmart LCD键盘屏蔽。现在,当我在arduino IDE中验证代码时,我得到以下一组错误:

sketch_jul22b.cpp:15:81: error: expected unqualified-id before '\x593a'
sketch_jul22b.cpp:15:81: error: expected ‘}’ before '\x593a'
sketch_jul22b.cpp:15:81: error: expected ‘,’ or ‘;’ before '\x593a'
sketch_jul22b.cpp:15:88: error: expected declaration before ‘}’ token
如果有人能告诉我: 1) 这些错误意味着什么。 2) 如何解决这些问题


谢谢

我不确定您究竟编辑了哪一行,但查看您的代码,我觉得状态字符串必须用双引号括起来。也应该有,而不是。在“令人敬畏”之后

所以不是

String top[] = {'Status:', 'Adam:', 'Oliver:', 'Adam & Oliver:', 'Awesomeness'. 'OBEY:'};
你应该

String top[] = {"Status:", "Adam:", "Oliver:", "Adam & Oliver:", "Awesomeness", "OBEY:"};

已更正编译的代码。 @praks411是正确的,但有一些打字错误,需要使用lcd.print而不是lcd.write