LCD display test


LCD display test

Toolkit:AVR Development System

Location:/bipom/devtools/WinAVR/minimaxavrc/Examples/Labs/lcd

Code Example


int main (void)
{
	/* UART */
	uart1Init(19200);		// Initialize uart0

	
	/* Send messages to terminal window */
	uart1Printf("\n\rBIPOM MINI-MAX/AVR");
	uart1Printf("\n\rLCD TEST EXAMPLE");
	uart1Printf("\n\rVERSION: 1.01");
	uart1Printf("\n\r");

	/* LCD */
	lcdInit();	/* Initialize LCD module */
	pwmInit();	/* Adjust LCD contrast */
	lcdControlCursor(CURSOR_OFF); /* Disable LCD cursor */
	lcdClearDisplay(); /* Clear Display */
	
	/* Print test message to TOP line */
	lcdSetTopLine();	
	lcdPrintf("BIPOM MINI-MAX/AVR");
	
	/* Print test message to BOTTOM line */
	lcdSetBottomLine();	
	lcdPrintf("Test Number = %d",505);
   	
   	for (;;);  	
}