Demo entry 6684290

168

   

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

void CTR_lcd::write_168_at(unsigned int x, unsigned int y,char *word)
{
     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 <= 7 ; j++ )
       {
          tmp = targetByteIndex + (width*i+j);


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

       }
     }
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).