LCD1602#

Key Points#

  • LCD1602直接驱动的方法

  • LCD1602 I2C驱动的方法

  • PCF8754x 转接板的原理与连接方法

Review#

驱动 LCD 1602 主要有两种方法,一种是直接驱动,需要占用单片机较多的I/O口;另一种是使用 I2C接口来驱动,一般是用 PCF8754x 芯片做的 I2C转接板。

LCD 1602 的工作模式有4bit模式和8bit 模式两种,前者更节省I/O口,后者更快速。

PCF8754x 在将单片机的控制字 1Byte 转接到 LCD 时,因为同时需要表示 RS、 RW 等控制信号,又要表示命令,所以一般(总是)使用 LCD 1602 的 4bit 工作模式。

注意事项#

PCF8754x 有 PCF8754、PCF8754A 等不同型号,它们的 I2C 地址可能不同。

io扩展芯片PCF8574T驱动_pcf8574t地址_计算机视觉调参侠的博客-CSDN博客

Library#

LiquidCrystal Library - Arduino Reference

Liquid Crystal Displays (LCD) with Arduino Tutorial| Arduino Documentation

arduino-libraries/LiquidCrystal: Liquid Crystal Library for Arduino

hd44780 - Arduino Reference

johnrickman/LiquidCrystal_I2C: LiquidCrystal Arduino library for the DFRobot I2C LCD displays

krovma/LCD1602: A full library of LCD1602 on Arduino

Assembled Standard LCD 16x2 + extras - White on Blue : ID 1447 : $10.95 : Adafruit Industries, Unique & fun DIY electronics and kits

i2c / SPI character LCD backpack - STEMMA QT / Qwiic : ID 292 : $9.95 : Adafruit Industries, Unique & fun DIY electronics and kits

Adafruit I2C Controlled + Keypad Shield Kit for 16x2 LCD : ID 715 : $14.95 : Adafruit Industries, Unique & fun DIY electronics and kits

Arduino I2C Use | I2C/SPI LCD Backpack | Adafruit Learning System

Arduino - LCD I2C | Arduino Tutorial

Arduino - LCD | Arduino Tutorial

Grove - 16x2 LCD | Seeed Studio Wiki

Character I2C LCD with Arduino Tutorial (8 Examples)

Arduino - LCD | Arduino Tutorial

i2c / SPI character LCD backpack

Tutorials#

Standard LCD 16x2 + extras white on blue : ID 181

Overview | Character LCDs

Arduino LCD Tutorial | custom special symbol

long Examples#

Arduino 16x2 LCD Tutorial - Interfacing 16x2 LCD with Arduino

Arduino LCD using a 16x2 Liquid Crystal Display - Pi My Life Up

Character I2C LCD with Arduino Tutorial (8 Examples)

Interfacing I2C 16x2 Character LCD with Arduino - Electropeak

LCD1602 RGB Module - Waveshare Wiki


直接驱动 LCD1602

In-Depth Tutorial to Interface 16x2 Character LCD Module with Arduino

I2C驱动LCD1602

In-Depth: Interfacing an I2C LCD with ArduinoReference

Reference#