2015-11-05 73 views
0

任何人都可以幫助解決此錯誤消息嗎? 剛買了一個Arduino UNO &已經 非常感謝robot_arm1:3:錯誤:在'/'令牌之前預期的非限定標識

robot_arm1卡:3:錯誤:之前 '/' 令牌

*/ 

pinMode(buttonPin, INPUT_PULLUP); 

Serial.print("Initializing SD card..."); // make sure that the default chip select pin is set to // output, even if you don't use it: pinMode(10, OUTPUT); 

// see if the card is present and can be initialized: if (!SD.begin(chipSelect)) { Serial.println("Card failed, or not present"); // don't do anything more: return; } Serial.println("card initialized."); 

} 

void loop() { 
+0

請添加更多代碼並進行格式化。指出造成錯誤的線是什麼。 – jabujavi

+0

謝謝,我試圖粘貼完整的代碼,但stackoverflow有一個限制。 – Steve765

+0

完整的代碼在這裏:https://github.com/Dileepmeom/Arduino-Robotic-Arm---Copt-Cat/commit/d11fb86573a43bebe0f71824b45c313ac2cb32ae,我很想得到這個工作,因爲它會很棒!你能看看它是否適用於你的ide嗎?非常感謝 – Steve765

回答

0

代碼預期不合格-ID似乎有一個額外的* /開始 嘗試刪除該令牌並且編譯代碼。 或者,您可以在有問題的行之前和之後發佈更大的代碼塊嗎?

相關問題