Beispiel #1
0
void glcdSetYAddress(u08 yAddr) {
  // record address change locally
  GrLcdState.lcdYAddr = yAddr;
  // set page address for all controllers
  glcdControlWrite(0, GLCD_SET_PAGE | yAddr);
  glcdControlWrite(1, GLCD_SET_PAGE | yAddr);
}
Beispiel #2
0
void glcdInit()
{
	// initialize hardware
	glcdInitHW();
	// bring lcd out of reset
	glcdReset(FALSE);
	// Turn on LCD
	glcdControlWrite(0, GLCD_ON_CTRL | GLCD_ON_DISPLAY);
	glcdControlWrite(1, GLCD_ON_CTRL | GLCD_ON_DISPLAY);
	// clear lcd
	glcdClearScreen();
	// initialize positions
	glcdHome();
}
Beispiel #3
0
void glcdSetXAddress(u08 xAddr)
{
	// record address change locally
	GrLcdState.lcdXAddr = xAddr;
	
	glcdControlWrite(0, GLCD_SET_Y_ADDR);
	GrLcdState.ctrlr[0].xAddr = 0;
	glcdControlWrite(1, GLCD_SET_Y_ADDR);
	GrLcdState.ctrlr[1].xAddr = 0;

	// set y (col) address on destination controller
	glcdControlWrite((GrLcdState.lcdXAddr/GLCD_CONTROLLER_XPIXELS),
		GLCD_SET_Y_ADDR | (GrLcdState.lcdXAddr & 0x3F));
}
Beispiel #4
0
void glcdSetXAddress(uint8_t xAddr)
{
	uint8_t i;
	// record address change locally
	GrLcdState.lcdXAddr = xAddr;
	
	// clear y (col) address on all controllers
	for(i=0; i<GLCD_NUM_CONTROLLERS; i++)
	{
		glcdControlWrite(i, GLCD_SET_Y_ADDR | 0x00);
		GrLcdState.ctrlr[i].xAddr = 0;
	}

	// set y (col) address on destination controller
	glcdControlWrite((GrLcdState.lcdXAddr/GLCD_CONTROLLER_XPIXELS),
		GLCD_SET_Y_ADDR | (GrLcdState.lcdXAddr & 0x3F));
}
Beispiel #5
0
void glcdSetYAddress(uint8_t yAddr)
{
	uint8_t i;
	// record address change locally
	GrLcdState.lcdYAddr = yAddr;
	// set page address for all controllers
	for(i=0; i<GLCD_NUM_CONTROLLERS; i++)
	{
		glcdControlWrite(i, GLCD_SET_PAGE | yAddr);
	}
}
Beispiel #6
0
void glcdInit()
{
	uint8_t i;
	// initialize hardware
	glcdInitHW();
	// bring lcd out of reset
	glcdReset(FALSE);
	// Turn on LCD
	for(i=0; i<GLCD_NUM_CONTROLLERS; i++)
	{
		glcdControlWrite(i, GLCD_ON_CTRL | GLCD_ON_DISPLAY);
	}
	// clear lcd
	glcdClearScreen();
	// initialize positions
	glcdHome();
}
Beispiel #7
0
void glcdStartLine(u08 start)
{
  glcdControlWrite(0, GLCD_START_LINE | start);
  glcdControlWrite(1, GLCD_START_LINE | start);
}