รบกวนด้วยครับ
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 4);
void setup()
{
// initialize the LCD
lcd.begin();
lcd.print("Hello (^__^)");
}
void loop()
{
lcd.setCursor(0, 1);
lcd.print("ThaiEasyElec");
lcd.setCursor(0, 2);
lcd.print("ThaiEasyElec");
lcd.setCursor(0, 3);
lcd.print("ThaiEasyElec");
// Do nothing here...
}
เช็คที่โคด มีตัวอย่างการใช้งานที่หน้าเว็บ และลองสอบถามเพิ่มเติมจากร้านที่ซื้อมาเพื่อเป็นข้อมูลเพิ่มเติมได้ครับ
โคดน่าจะยังไม่ถูก จอเป็น 16x4 มี address เป็น 0x27 เช็คตรงนี้อีกหลาย ๆ รอบ
ลองใช้ไลบารีตัวนี้ https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
อาจเป็นกับอุปกรณ์หรือโคดไม่ถูก ลองสอบถามเพิ่มเติมจากร้านที่ซื้อมาเพื่อเป็นข้อมูลเพิ่มเติมนะครับ