หากต้องการใบเสนอราคา / ใบแจ้งหนี้ ติดต่อได้ทาง LINE Official: @mikroelec |
![]() |
รหัสสินค้า | SKU-00901 |
หมวดหมู่ | โมดูลจอแสดงผล LCD |
ราคา | 170.00 บาท |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 19 ก.ย. 2563 |
อัพเดทล่าสุด | 17 ส.ค. 2568 |
จำนวน | ชิ้น |
I2C Character LCD | Arduino |
---|---|
GND | GND |
VCC | 5 V |
SDA | A4 |
SCL | A5 |
If you are not using an Arduino Uno, the SDA and SCL pins can be at a different location. An Arduino UNO with the R3 layout (1.0 pinout), also has the SDA (data line) and SCL (clock line) pin headers close to the AREF pin. Check the table below for more details.
Board | SDA | SCL |
---|---|---|
Arduino Uno | A4 | A5 |
Arduino Nano | A4 | A5 |
Arduino Micro | 2 | 3 |
Arduino Mega 2560 | 20 | 21 |
Arduino Leonardo | 2 | 3 |
Arduino Due | 20 | 21 |
In this tutorial, I will be using the LiquidCrystal_I2C library. This library has many built-in functions that make programming the LCD quite easy. The latest version of this library can be downloaded here on GitHub or click the button below.
Make sure that you have this exact library installed and delete any other libraries that have the same name (LiquidCrystal_I2C). Other libraries will probably work as well but might use slightly different names for the different functions.
Test code:
หน้าที่เข้าชม | 554,627 ครั้ง |
ผู้ชมทั้งหมด | 312,270 ครั้ง |
ร้านค้าอัพเดท | 6 ก.ย. 2568 |