Skip to content

Instantly share code, notes, and snippets.

@SaheblalBagwan
Last active July 21, 2016 03:59
#include "lcd.h"
#include "systemInit.h"
int main()
{
SystemInit();
/*Connect RS->P1_16, RW->P1_17, EN->P1_18 and data bus(D4:D7 - P1_20:P1_23)*/
LCD_SetUp(P1_16,P1_17,P1_18,P_NC,P_NC,P_NC,P_NC,P1_20,P1_21,P1_22,P1_23);
LCD_Init(4,20);
LCD_DisplayString("Explore Embedded\n");
LCD_DisplayString("LCD 4-bit Mode\n");
LCD_DisplayString("20 x 4 \n");
LCD_DisplayString(":) :O");
while(1);
return (0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment