Write 8-bit value in character or data mode.  Value should be an int
        value from 0-255, and char_mode is True if character data or False if
        non-character data (default).

def write8(self, value, char_mode=False):
        """Write 8-bit value in character or data mode.  Value should be an int
        value from 0-255, and char_mode is True if character data or False if
        non-character data (default).
        """
        # One millisecond delay to prevent writing too quickly.
        self._delay_microseconds(1000)
        # Set character / data bit.
        self._rs.set(char_mode)
        # Write upper 4 bits.
        self._d4.set(((value >> 4) & 1) > 0)
        self._d5.set(((value >> 5) & 1) > 0)
        self._d6.set(((value >> 6) & 1) > 0)
        self._d7.set(((value >> 7) & 1) > 0)
        self._pulse_enable()
        # Write lower 4 bits.
        self._d4.set((value        & 1) > 0)
        self._d5.set(((value >> 1) & 1) > 0)
        self._d6.set(((value >> 2) & 1) > 0)
        self._d7.set(((value >> 3) & 1) > 0)
        self._pulse_enable()