All tutorials

4 · Displays & buses

16×2 LCD display

Intermediate20 min

Goal

Write two lines of text plus an incrementing counter.

Why it matters

The alphanumeric LCD is still the most common display in industry.

Steps

  1. 01Add the 16×2 LCD (I²C, address 0x27).
  2. 02Initialise the bus inside setup().
  3. 03Write a title on line 0.
  4. 04Show a counter refreshed every second on line 1.

This tutorial runs inside the Circuitly simulator: your wiring and your code are checked automatically at every step.

Next tutorials