Skip to content

Instantly share code, notes, and snippets.

@SaheblalBagwan
Last active September 3, 2018 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SaheblalBagwan/1d7babfd4b67463ce5cf7b4a92f2805e to your computer and use it in GitHub Desktop.
Save SaheblalBagwan/1d7babfd4b67463ce5cf7b4a92f2805e to your computer and use it in GitHub Desktop.
/* Configure the data bus and Control pins as per the hardware connection
Databus is connected to P2_0:P2_7 and control bus P0_0:P0_2*/
#define LcdDataBus P2
sbit LCD_RS = P0^0;
sbit LCD_RW = P0^1;
sbit LCD_EN = P0^2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment