iT邦幫忙

0

Arduino 遇到問題

  • 分享至 

  • xImage

偵錯資訊:
Arduino:1.8.9 (Windows 10), 開發板:"Arduino/Genuino Uno"

FlagsBlockSketch:17:1: error: stray '\342' in program

Serial.println(“RFID reader is ready!”);

^

FlagsBlockSketch:17:1: error: stray '\200' in program

FlagsBlockSketch:17:1: error: stray '\234' in program

FlagsBlockSketch:17:1: error: stray '\342' in program

FlagsBlockSketch:17:1: error: stray '\200' in program

FlagsBlockSketch:17:1: error: stray '\235' in program

FlagsBlockSketch:35:1: error: stray '\342' in program

Serial.print(“PICC type: “); // 顯示卡片類型

^

FlagsBlockSketch:35:1: error: stray '\200' in program

FlagsBlockSketch:35:1: error: stray '\234' in program

FlagsBlockSketch:35:1: error: stray '\342' in program

FlagsBlockSketch:35:1: error: stray '\200' in program

FlagsBlockSketch:35:1: error: stray '\234' in program

FlagsBlockSketch:43:1: error: stray '\342' in program

Serial.print(“UID Size: “); // 顯示卡片的UID長度值

^

FlagsBlockSketch:43:1: error: stray '\200' in program

FlagsBlockSketch:43:1: error: stray '\234' in program

FlagsBlockSketch:43:1: error: stray '\342' in program

FlagsBlockSketch:43:1: error: stray '\200' in program

FlagsBlockSketch:43:1: error: stray '\234' in program

FlagsBlockSketch:49:1: error: stray '\342' in program

Serial.print(“id[“);

^

FlagsBlockSketch:49:1: error: stray '\200' in program

FlagsBlockSketch:49:1: error: stray '\234' in program

FlagsBlockSketch:49:1: error: stray '\342' in program

FlagsBlockSketch:49:1: error: stray '\200' in program

FlagsBlockSketch:49:1: error: stray '\234' in program

FlagsBlockSketch:53:1: error: stray '\342' in program

Serial.print(“]: “);

^

FlagsBlockSketch:53:1: error: stray '\200' in program

FlagsBlockSketch:53:1: error: stray '\234' in program

FlagsBlockSketch:53:1: error: stray '\342' in program

FlagsBlockSketch:53:1: error: stray '\200' in program

FlagsBlockSketch:53:1: error: stray '\234' in program

C:\FlagsBlock\block\FlagsBlockSketch\FlagsBlockSketch.ino: In function 'void setup()':

FlagsBlockSketch:17:19: error: 'RFID' was not declared in this scope

Serial.println(“RFID reader is ready!”);

               ^

C:\FlagsBlock\block\FlagsBlockSketch\FlagsBlockSketch.ino: In function 'void loop()':

FlagsBlockSketch:35:17: error: 'PICC' was not declared in this scope

Serial.print(“PICC type: “); // 顯示卡片類型

             ^

FlagsBlockSketch:43:17: error: 'UID' was not declared in this scope

Serial.print(“UID Size: “); // 顯示卡片的UID長度值

             ^

FlagsBlockSketch:49:23: error: expected primary-expression before ')' token

Serial.print(“id[“);

                   ^

FlagsBlockSketch:49:23: error: expected ']' before ')' token

FlagsBlockSketch:53:17: error: expected primary-expression before ']' token

Serial.print(“]: “);

             ^

"MFRC522.h"找到多個程式庫
已使用: C:\FlagsBlock\block\FlagsBlockSketch\libraries\rfid-master
未使用: C:\FlagsBlock\arduino\libraries\LiquidCrystal
未使用: C:\FlagsBlock\arduino\libraries\LiquidCrystal
未使用: C:\FlagsBlock\arduino\libraries\LiquidCrystal
未使用: C:\FlagsBlock\arduino\libraries\LiquidCrystal
exit status 1
stray '\342' in program

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

可能是你引用的庫,是有問題的
OK
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答