LCD display


Connecting an LCD display to MINI-MAX/AVR

Toolkit:AVR Development System

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

Code Example


// Put Signature to EEPROM

uint8_t ee_pwm __attribute__((section(".eeprom"))) = 0xA5;

// *******************************************************************

int main(void)
{
	// Initialize the system

	uart0Init(19200);	
	uart0Printf("\n\rBIPOM MINI-MAX/AVR");
	
	// 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("LCD EXAMPLE");
   	
   	return 0;
}