How a screen knows where you touched: touchscreens, OLED and cameras

: the keyhole of visible light on that ruler is what a screen sends out and what a camera takes in. This lesson looks at the glass on the other side of both: how a screen feels your finger, how it makes light, and how a camera counts it.
In October 1965, an engineer named E. A. Johnson at the Royal Radar Establishment in Malvern, England, described a new way to point at a computer screen. He wrote that you could simply touch the glass with a finger. His work was aimed at air traffic control, where a person needed to pick one aircraft out of many (source: Johnson, “Touch display”, Electronics Letters, October 1965, as described in the history sources linked at the end).
A phone does this all day. The same glass also makes light and takes light in.
By the end of this lesson you will be able to work out where a finger touched a screen to better than the gap between sensors, say why a black pixel on an OLED screen uses no light, and say why a photo taken in the dark looks grainy.
Before you start. Three Lights Pretending to Be Every Colour, screens, eyes and cameras gave you the sub-pixel: every pixel is a red, a green and a blue dot, and a camera sensor is silicon under a mosaic of red, green and blue filters. Why You Can See Through Sand: band gaps, glass, metal and silicon gave you the band gap, the step of energy that a silicon electron must climb. Light as a wire: lasers, LEDs and fibre gave you the LED: an electron falls across a step and one photon leaves. You will use all three.
The history (optional)
Johnson’s October 1965 note was in the journal Electronics Letters. A fuller paper followed in 1967 in the journal Ergonomics. Sources disagree on when his patent was granted and when his screens first went into service, so those dates are left out here. In September 1987, two chemists at Eastman Kodak in Rochester, New York, Ching Tang and Steven VanSlyke, published “Organic electroluminescent diodes” in Applied Physics Letters. They made a thin two-layer film of organic material that glowed green at under 10 volts (source: the paper’s abstract, via the Harvard ADS record). The colour mosaic on camera sensors was invented at Kodak by Bryce Bayer. Kodak filed his application in March 1975, and it was granted in July 1976 as US patent 3,971,065 (source: the patent record and the Imaging Resource obituary, November 2012).
Think of a cinema seating chart. Every seat has a row letter and a seat number, and you find who sits where by reading the chart. A touch sensor is a chart of rows and columns, and the screen reads it.