void LCD_write_8(char byteToSend) { unsigned char sendByte = byteToSend; sendByte &= 0xF0; sendByte = sendByte >> 4; // rotate to the right 4 times LCD_write_4(sendByte); sendByte = byteToSend; sendByte &= 0x0F; LCD_write_4(sendByte); }
void writeCommandNibble(char commandNibble) { LCDCON &= ~RS_MASK; LCD_write_4(commandNibble); delayMilli(); }
void writeCommandNibble(char commandNibble) { LCDCON &= ~RS_MASK; LCD_write_4(commandNibble); __delay_cycles(1698); }