Exemple #1
0
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();
}
Exemple #2
0
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);
}
Exemple #3
0
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);

}
Exemple #4
0
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();

}
Exemple #5
0
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();
}