code: def write(self, value):  # type: (int) -> None
          
  
          # Get current position
          row, col = self._cursor_pos
  
          # Write byte if changed
          try:
              if self._content[row][col] != value:
                  self._send_data(value)
                  self._content[row][col] = value  # Update content cache
                  unchanged = False
              else:
                  unchanged = True
          except IndexError as e:
              # Position out of range
              if self.auto_linebreaks is True:
                  raise e
              self._send_data(value)
              unchanged = False
  
          # Update cursor position.
          if self.text_align_mode == 'left':
              if self.auto_linebreaks is False or col < self.lcd.cols - 1:
                  # No newline, update internal pointer
                  newpos = (row, col + 1)
                  if unchanged:
                      self.cursor_pos = newpos
                  else:
                      self._cursor_pos = newpos
                  self.recent_auto_linebreak = False
              else:
                  # Newline, reset pointer
                  if row < self.lcd.rows - 1:
                      self.cursor_pos = (row + 1, 0)
                  else:
                      self.cursor_pos = (0, 0)
                  self.recent_auto_linebreak = True
          else:
              if self.auto_linebreaks is False or col > 0:
                  # No newline, update internal pointer
                  newpos = (row, col - 1)
                  if unchanged:
                      self.cursor_pos = newpos
                  else:
                      self._cursor_pos = newpos
                  self.recent_auto_linebreak = False
              else:
                  # Newline, reset pointer
                  if row < self.lcd.rows - 1:
                      self.cursor_pos = (row + 1, self.lcd.cols - 1)
                  else:
                      self.cursor_pos = (0, self.lcd.cols - 1)
                  self.recent_auto_linebreak = True
docs: Write a raw byte to the LCD.