สวัสดีครับ ใครรู้ช่วยผมทีครับ ผมเขียนโค้ด Arduino แสดง text บน LCD แต่ขึ้นแค่ตัวอักษรตัวแรก
แต่ถ้าสั่งให้กดปุ่ม แล้วขึ้นตัวอักษร 1 ตัว แล้วก็กดไปเรื่อยๆ ก็ขึ้นได้ทุกพิกเซลของจอ ผมเลยคิดว่าจอไม่น่าเสีย
ผมใช้ I2C module ต้องแก้ยังไง ผู้รู้บอกทีครับ
ขอบคุณครับ
จากโค้ดมันแสดงผลบนจอแค่
T
w
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 in PCF8574 by NXP and Set to 0x3F in PCF8574A by Ti
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// initialize the LCD
lcd.begin();
lcd.print("This LCD I2C");
lcd.setCursor(0, 1);
lcd.print("www.ioxhop.com");
}
void loop() {
// Do nothing here...
}
ใครรู้ช่วยผมทครับ แสดง text บน LCD ขึ้นแค่ตัวอักษรตัวแรก แสดงทั้งคำไม่ได้
แต่ถ้าสั่งให้กดปุ่ม แล้วขึ้นตัวอักษร 1 ตัว แล้วก็กดไปเรื่อยๆ ก็ขึ้นได้ทุกพิกเซลของจอ ผมเลยคิดว่าจอไม่น่าเสีย
ผมใช้ I2C module ต้องแก้ยังไง ผู้รู้บอกทีครับ
ขอบคุณครับ
จากโค้ดมันแสดงผลบนจอแค่
T
w
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 in PCF8574 by NXP and Set to 0x3F in PCF8574A by Ti
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// initialize the LCD
lcd.begin();
lcd.print("This LCD I2C");
lcd.setCursor(0, 1);
lcd.print("www.ioxhop.com");
}
void loop() {
// Do nothing here...
}