ทำตามลิงค์ www.youtube.com/watch?v=jVPf_JFUQdo ทุกอย่างครับ
โหลดไลบารีมาแล้วก็อบไปวางที่file adrduino /Library
จากนั้นก็ก๊อบโค๊ดที่ใช้งาน Arduino Data log ger Shield ดัดแปลงใช้กับ Arduino mega
แต่คอมไพล์ไม่ผ่าน
มันเตือนว่า
Arduino: 1.5.8 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
sketch_jun03a.ino: In function 'void setup()':
sketch_jun03a.ino:28:31: error: no matching function for call to 'SDClass::begin(int, int, int, int)'
sketch_jun03a.ino:28:31: note: candidate is:
In file included from sketch_jun03a.ino:5:0:
C:\Users\Administrator\Documents\Arduino\libraries\SD\src/SD.h:68:11: note: boolean SDClass::begin(uint8_t)
boolean begin(uint8_t csPin = SD_CHIP_SELECT_PIN);
^
C:\Users\Administrator\Documents\Arduino\libraries\SD\src/SD.h:68:11: note: candidate expects 1 argument, 4 provided
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
มีวิธีแก้ไขได้อย่างไรบ้างครับ
คอมไพล์ผ่านแล้วคับ บันทึกเป็นไฟล์ Text ได้แล้ว แต่พอเปิดดูกลับไม่มีข้อมูลครับ
รายละเอียดผมบอกเท่าที่บอกได้ไปหมดแล้ว ใกล้จะได้แล้ว ลองเช็คโคดอีกทีครับ
‹ ก่อนหน้า | 1 | 2 |