Smart_Cube_Full_Code/LiquidCrystal.cpp
void LiquidCrystal::send(uint8_t value, uint8_t mode) {
  _digitalWrite(_rs_pin, mode);

  // if there is a RW pin indicated, set it low to Write
  if (_rw_pin != 255) {
    _digitalWrite(_rw_pin, LOW);
  }

  if (_displayfunction & LCD_8BITMODE) {
    write8bits(value);
  } else {
    write4bits(value>>4);
    write4bits(value);
  }
}
// write either command or data, with automatic 4/8-bit selection
write either command or data, with automatic 4/8-bit selection
write either command or data with automatic 4 / 8 - bit selection
void LiquidCrystal::send(uint8_t value, uint8_t mode) {
  _digitalWrite(_rs_pin, mode);
  if (_rw_pin != 255) {
    _digitalWrite(_rw_pin, LOW);
  }
  if (_displayfunction & LCD_8BITMODE) {
    write8bits(value);
  } else {
    write4bits(value>>4);
    write4bits(value);
  }
}
void LiquidCrystal :: send ( uint8_t value , uint8_t mode ) { _digitalWrite ( _rs_pin , mode ) ; if ( _rw_pin != 255 ) { _digitalWrite ( _rw_pin , LOW ) ; } if ( _displayfunction & LCD_8BITMODE ) { write8bits ( value ) ; } else { write4bits ( value >> 4 ) ; write4bits ( value ) ; } }
write either command or data, with automatic 4/8-bit selection
write either command or data with automatic 4 / 8 - bit selection
// if there is a RW pin indicated, set it low to Write