Skip to content

Instantly share code, notes, and snippets.

@SaheblalBagwan
Created May 4, 2016 16:32
/* 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