Two screens
A character LCD shows text in fixed cells: 16 columns, 2 rows, each cell 5 by 8 dots. An OLED is a free grid of 128 by 64 dots, each giving off its own light. We will put the letter A on both.
The Uno never drives single dots. Each screen has its own controller chip with memory: an HD44780 on the LCD, an SSD1306 on the OLED. The Uno sends bytes; the controller keeps the picture lit.
Character LCD
In 4-bit mode the Uno uses six pins. RS picks the register: 0 means command, 1 means character. D4 to D7 carry four bits at a time. E is the strobe: a short pulse tells the controller to read them.
setCursor(0, 0) sends a command, so RS is 0. The byte is 0x80: "set address" plus address 0x00, the first cell of row 1. Row 2 starts at 0x40. It goes as two halves: 1000, then 0000.
'A' is the byte 0x41, or 0100 0001 in binary. RS goes to 1: this is a character. The high half goes first: D7 to D4 show 0100, and E pulses once. The controller holds those four bits.
Then the low half: 0001, and E pulses again. Now the controller has the whole byte 0x41. It stores it in display memory at address 0x00 and moves on to 0x01. Each write takes up to 37 µs.
The controller looks up 0x41 in its font ROM and lights the 5 by 8 pattern of A in cell 0. The Uno sent one byte, not 40 dots. The catch: only shapes in that ROM, plus 8 of your own.
OLED
The OLED has no font ROM. The library keeps a copy of the screen in the Uno's SRAM: 128 × 64 ÷ 8 = 1,024 bytes, half of its 2,048. print('A') sets the dots of A in that copy.
display() sends the buffer over I2C: SDA carries bits, SCL the clock. Each message starts with the address 0x3C, then a control byte: 0x00 means commands follow, 0x40 means dot data follows.
The SSD1306 memory is 8 pages of 128 columns. Each data byte fills one column of 8 dots in a page, bit 0 at the top. A is five bytes: 7C 12 11 12 7C.
Choosing
Character LCD: one byte per letter and almost no RAM, but only fixed cells and its built-in font. OLED: any shape, but 1,024 bytes of RAM for the buffer and 1,024 data bytes (plus addressing) on the bus for every full refresh.
What happens
;; step 1/11 · two-screens
character LCD 16 x 2 cells, 5 x 8 dots each
text only, in fixed places
OLED 128 x 64 dots, each its own light
any shape, anywhere
goal the letter A in the top-left corner of both
The card shows the five lines that put A on both screens. The whole sketch also creates lcd (pins 12, 11, 5, 4, 3, 2) and oled (128 x 64, I2C address 0x3C), calls lcd.begin(16, 2) and oled.begin(), clears the OLED and sets its text colour to white. The OLED in the figure shows only its top-left 16 x 16 dots (pages 0 and 1), enlarged; the real screen has 128 x 64. The A uses the Adafruit GFX built-in 5 x 7 font, so its eighth row is empty.