Page 92 (Spotted by Federico Arismendi - thanks!)
The line
I = pinIn.value()
should be
i = pinIn.value()
The text processor we use has a habit of automatically upper casing i to I !