/************ * low level data pushing commands **********/ // write either command or data, with automatic 4/8-bit selection private void send(int value, boolean rsValue) throws IOException { rsGpio.setValue(rsValue); // if there is a RW pin indicated, set it low to Write if (rwGpio != null) { rwGpio.setValue(false); } if ((displayfunction & LCD_8BITMODE) == 0) { write4bits(value >> 4); write4bits(value); } else { write8bits(value); } }
write4bits(0x03); delayMicroseconds(4500); // wait min 4.1ms write4bits(0x03); delayMicroseconds(4500); // wait min 4.1ms write4bits(0x03); delayMicroseconds(150); write4bits(0x02); } else {