code: def _send(self, value, mode):
          
          # Wait, if compatibility mode is enabled
          if self.compat_mode:
              self._wait()
  
          # Choose instruction or data mode
          GPIO.output(self.pins.rs, mode)
  
          # If the RW pin is used, set it to low in order to write.
          if self.pins.rw is not None:
              GPIO.output(self.pins.rw, 0)
  
          # Write data out in chunks of 4 or 8 bit
          if self.data_bus_mode == c.LCD_8BITMODE:
              self._write8bits(value)
          else:
              self._write4bits(value >> 4)
              self._write4bits(value)
  
          # Record the time for the tail-end of the last send event
          if self.compat_mode:
              self.last_send_event = now()
docs: Send the specified value to the display with automatic 4bit / 8bit
          selection. The rs_mode is either ``RS_DATA`` or ``RS_INSTRUCTION``.