Good morning,
We have executed the following code for LCD display without errors. But the LCD screen is just blinking and not displaying anything.
#include "hal_lcd.c"
main()
{
WDTCTL = WDTPW+WDTHOLD; // Stop watchdog timer
static const char Text[] = {"Welcome"};
unsigned int i;
while(1)
{
halLcdInit(); // Initialize LCD
halLcdBackLightInit();
halLcdClearScreen();
halLcdSetBackLight(15); // Switch ON LCD
halLcdPrintLine("Hello World",0,0); // displays hello world on LCD
__delay_cycles(2000);
halLcdPrintLine((char *)Text, 0, 0);
__delay_cycles(2000);
}
}
Anyone please help me out of this..