Figure 1—Typical serial encoding schemes won’t survive the unpredictable delays of the JavaScript interpreter, operating system, and video frame-refresh circuitry. Therefore, each bit is encoded with an ample timing margin and the 6-bit data is encapsulated in a 10-bit Hamming code word capable of detecting and correcting single-bit errors. A Stop bit provides an extra edge to improve reception.