Example #1
0
///----------------------------------------------------------------------------
///	Function Break
///----------------------------------------------------------------------------
void LcdPwTimerCallBack(void)
{
	debug("LCD Power Timer callback: activated.\r\n");

	g_lcdPowerFlag = DISABLED;

	PowerControl(LCD_CONTRAST_ENABLE, OFF);
	ClearLcdDisplay();
	ClearControlLinesLcdDisplay();
	LcdClearPortReg();
	PowerControl(LCD_POWER_ENABLE, OFF);

	if (g_sampleProcessing == ACTIVE_STATE)
	{
		debug("LCD Power Timer callback: disabling Monitor Update Timer.\r\n");
		ClearSoftTimer(MENU_UPDATE_TIMER_NUM);
	}
}
Example #2
0
///----------------------------------------------------------------------------
///	Function Break
///----------------------------------------------------------------------------
void InitLcdDisplay(void)
{
	// Issue reset pulse to LCD display
	LcdResetPulse();
	
	// Make sure LCD is ready for commands
	WaitForLcdReady(LCD_SEGMENT1);

	// Init LCD segment 1
	SetLcdMode(LCD_DISPLAY_ON, LCD_SEGMENT1);
	SetLcdStartLine(DEFAULT_START_LINE, LCD_SEGMENT1);
	SetLcdOrigin(DEFAULT_X_LOC, DEFAULT_Y_LOC, LCD_SEGMENT1);

	// Init LCD segment 2
	SetLcdMode(LCD_DISPLAY_ON, LCD_SEGMENT2);
	SetLcdStartLine(DEFAULT_START_LINE, LCD_SEGMENT2);
	SetLcdOrigin(DEFAULT_X_LOC, DEFAULT_Y_LOC, LCD_SEGMENT2);

	// Clear the LCD display
	ClearLcdDisplay();
}