รูปตัวอย่างการจำลองในโปรแกรม proteus
Source Code ที่ใช้ทดลอง
#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, 2);
void setup()
{
// initialize the LCD
lcd.begin();
// Turn on the blacklight and print a message.
lcd.backlight();
lcd.print("suksit!");
}
void loop()
{
// Do nothing here...
}
หลังจากที่ทดลองเสร็จแล้วเรามาดูตัวจริงของบอร์ด ic2 LCD 16 x 2 กันครับว่าหน้าตาเป็นยังไงแล้ววงจรภายในต่ออย่างไร
ตัวจริงของบอร์ด ic2 LCD 16 x 2
วงจรภายใน