Demo entry 6684289

1616

   

Submitted by anonymous on Dec 15, 2017 at 02:53
Language: C++. Code size: 467 Bytes.

void CTR_lcd::write_1616_at(unsigned int x, unsigned int y,char *word)//x閸掓绱漼鐞?
{
     unsigned int targetByteIndex,tmp;
     unsigned int i, j;

    if((x >= width) || (y >= height)) return;

    targetByteIndex = width * (y / 8) + x;
    tmp=targetByteIndex;

    for (i=0; i <= 1 ; i++ )
    {
      for (j=0; j <= 15 ; j++ )
      {
         tmp = targetByteIndex + (width*i+j);


           frameBuffer[tmp] = word[i*16+j];

      }
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).