[問題] 開發版arduino uno編譯錯誤(函式庫錯誤,是否得學寫函式庫?)

看板ASM (組合語言)作者 (undo)時間7年前 (2018/05/08 10:58), 7年前編輯推噓1(103)
留言4則, 2人參與, 7年前最新討論串1/1
新問題是否得學編寫函式庫 板子是ardunio unio R3 軟體版本是1.86 HOURLY BUILD 2018/5/3 零件是LCD 2004 5V LCM IIC I2C 20x4 20*4 目前狀況是編譯錯誤 從網路上亂抓函示庫 取自這網站 http://k12.camdemy.com/media/10772 結論怎麼用都是編譯錯誤 請問問題可能在哪裡? 很多程式常常編譯不進去 從網路隨取範例是抄自 http://goods.ruten.com.tw/item/show?21651841405254 //T電子 #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x3F,20,4); // set the LCD address to 0x3F for a 20 chars and 4 void setup() { lcd.init(); // initialize the lcd lcd.init(); // Print a message to the LCD. lcd.backlight(); lcd.setCursor(3,0); lcd.print("Hello, world!"); lcd.setCursor(2,1); lcd.print("Hello Arduino!"); lcd.setCursor(0,2); lcd.print("Arduino LCM IIC 2004"); lcd.setCursor(2,3); lcd.print("By T_electronics!"); } void loop() { } -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.161.216.22 ※ 文章網址: https://www.ptt.cc/bbs/ASM/M.1525748297.A.709.html ※ 編輯: lensfill (118.161.216.22), 05/08/2018 11:07:17 ※ 編輯: lensfill (118.161.216.22), 05/08/2018 11:07:43

05/08 12:23, 7年前 , 1F

05/08 12:23, 7年前 , 2F
9c%e6%8e%92%e9%99%a4/
05/08 12:23, 2F

05/13 18:30, 7年前 , 3F
謝謝指導, 最近試一次依樣同問題
05/13 18:30, 3F

05/13 19:35, 7年前 , 4F
在網路上找到正確的函式庫,已經可編譯,不知道這些函式庫
05/13 19:35, 4F
請問學這個需要自己學編寫函式庫嗎? 附函式庫網址 16x2 LCD 請下載這個 library: http://arduino-info.wikispaces.com/f..._I2C1602V1.zip 16x4 LCD 請下載這個 library: http://arduino-info.wikispaces.com/f..._I2C2004V1.zip ※ 編輯: lensfill (118.161.173.93), 05/13/2018 19:37:51 ※ 編輯: lensfill (118.161.173.93), 05/13/2018 19:39:07
文章代碼(AID): #1QyH99S9 (ASM)
文章代碼(AID): #1QyH99S9 (ASM)