Created
May 4, 2016 16:32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Function to send the command to LCD */ | |
void Lcd_CmdWrite(char cmd) | |
{ | |
LcdDataBus = cmd; //Send the Command nibble | |
LcdControlBus &= ~(1<<LCD_RS); // Send LOW pulse on RS pin for selecting Command register | |
LcdControlBus &= ~(1<<LCD_RW); // Send LOW pulse on RW pin for Write operation | |
LcdControlBus |= (1<<LCD_EN); // Generate a High-to-low pulse on EN pin | |
delay(100); | |
LcdControlBus &= ~(1<<LCD_EN); | |
delay(10000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment