รหัสสินค้า | M304 |
หมวดหมู่ | จอ LCD 1602 2004 5110 |
ราคา | 60.00 บาท |
น้ำหนัก | 38 กรัม |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 16 พ.ค. 2559 |
อัพเดทล่าสุด | 9 ส.ค. 2568 |
จำนวน | Unit |
//Compatible with the Arduino IDE 1.0 ,1.6.xxx=-
#include
#include
// PCF8574AT set the LCD address to 0x3F
LiquidCrystal_I2C lcd(0x3F,16,2);
// PCF8574T set the LCD address to 0x27
LiquidCrystal_I2C lcd2(0x27,16,2);
void setup()
{
//lcd.init(); // initialize the lcd
//lcd2.init(); // initialize the lcd
lcd.begin();
lcd2.begin();
// Print a message to the LCD.
lcd.backlight();
lcd2.backlight();
//lcd.print("Hello, world!");
lcd.home (); // ไปที่ตัวอักษรที่ 0 แถวที่ 1
lcd2.home (); // ไปที่ตัวอักษรที่ 0 แถวที่ 1
//-------- PCF8574AT
lcd.setCursor(1,0); // ไปทตัวอักษรที่ 1 แถวที่ 1
lcd.print("I2C LCD1602_AT");
lcd.setCursor(2,1); // ไปที่ตัวอักษรที่ 2 แถวที่ 2
lcd.print("Address 0x3F");
//-------- PCF8574T
lcd2.setCursor(1,0); // ไปทตัวอักษรที่ 1 แถวที่ 1
lcd2.print("I2C LCD1602_T");
lcd2.setCursor(2,1); // ไปที่ตัวอักษรที่ 2 แถวที่ 2
lcd2.print("Address 0x27");
}
void loop()
{
// Do nothing here...
}
หน้าที่เข้าชม | 5,180,581 ครั้ง |
ผู้ชมทั้งหมด | 1,579,921 ครั้ง |
ร้านค้าอัพเดท | 20 ต.ค. 2568 |