
Untitled
By: a guest on
Apr 29th, 2010 | syntax:
None | size: 0.55 KB | hits: 144 | expires: Never
void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases,
int x, int by, int width, int bheight, int stride)
{
if (lcd_initialized)
{
stride <<= 3; /* 8 pixels per block */
while (bheight--)
{
lcd_write_command(LCD_SET_PAGE | (by & 0xf));
lcd_write_command_e(LCD_SET_COLUMN | ((x >> 4) & 0xf), x & 0xf);
lcd_grey_data(values, phases, width);
values += stride;
phases += stride;
by++;
}
}
}