The optical code

from https://www.mikrocontroller.net/topic/214479#2973167 by The
Analyzer. This is for TING, but is likely similar for Tip-Toi, as shown
at https://www.mikrocontroller.net/topic/214479#3304870