Beispiel #1
0
void glcdWriteChar(char c, uint8_t color)
{
	uint8_t i = 0;
	if (glcdGetX() > (GRAPHICS_WIDTH-5))
	{
		glcdSetXY(0, glcdGetY() + 8);
	}

	for(i=0; i<5; i++)
	{
		glcdWriteData(pgm_read_byte(&Font5x7[((c - 0x20) * 5) + i]), color); //Borde snyggas till med pekare
	}
	glcdWriteData(0x00, color); //space between this and the next char
}
Beispiel #2
0
void glcdWriteChar(char c)
{
	uint8_t i = 0;
	if (GrLcdState.lcdXAddr > (128-5))
	{
		glcdSetXY(0,GrLcdState.lcdYAddr + 1);
	}

	for(i=0; i<5; i++)
	{	
		glcdWriteData(~pgm_read_byte(&Font5x7[((c - 0x20) * 5) + i])); //Borde snyggas till med pekare
	}
	glcdWriteData(~0x00);

}