void LCDinit() { writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x02); writeCommandByte(0x28); writeCommandByte(0x0C); writeCommandByte(0x01); writeCommandByte(0x06); writeCommandByte(0x01); writeCommandByte(0x02); SPI_send(0); delayMilli(); }
void initLCD() { set_SS_hi(); writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x02); writeCommandByte(0x28); writeCommandByte(0x0C); writeCommandByte(0x01); writeCommandByte(0x06); writeCommandByte(0x01); writeCommandByte(0x02); SPI_send(0); __delay_cycles(42); }
void LCDinit(){ writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x02); // set 4-bit interface writeCommandByte(0x28); // 2 lines, 5x7 writeCommandByte(0x0C); // display on, cursor, blink off writeCommandByte(0x01); // clear, cursor home writeCommandByte(0x06); // cursor increment, shift off writeCommandByte(0x01); // clear, cursor home writeCommandByte(0x02); // cursor home SPISEND(0); // clear register __delay_cycles(1000); }
void LCDinit(){ writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x02); writeCommandByte(0x28); writeCommandByte(0x0C); writeCommandByte(0x01); writeCommandByte(0x06); writeCommandByte(0x01); writeCommandByte(0x02); SPIsend(0); LCDDELAY1(); }
void LCDINIT() { writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x03); writeCommandNibble(0x02); writeCommandByte(0x28); writeCommandByte(0x0C); writeCommandByte(0x01); writeCommandByte(0x06); writeCommandByte(0x01); writeCommandByte(0x02); SPI_send(0); delayMicro(); }