Last active
June 20, 2016 10:51
-
-
Save raghavendrahassy/4057d66779f65ff1259c727d3e102a1b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#include "lcd.h" | |
/* | |
* | |
*/ | |
int main() | |
{ | |
/*Connect RS->P0.0, RW->P0.1, EN->P0.2 and data bus to P0.4 to P0.7*/ | |
LCD_SetUp(P0_0,P0_1,P0_2,P_NC,P_NC,P_NC,P_NC,P0_4,P0_5,P0_6,P0_7); | |
LCD_Init(2,16); | |
LCD_DisplayString("Explore Embedded\n"); | |
LCD_DisplayString("LCD 4-bit Mode\n"); | |
while(1); | |
return (0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment