Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2014
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. void drawSanta(void)
  2. {
  3.         uint32_t i = 153600 - 1;
  4.         uint16_t y = 0;
  5.         signed int x = 0;
  6.         uint16_t color;
  7.        for (y = 0; y < 240; y++) {
  8.                 for (x=319; x>=0; x--) {
  9.                         color = SantaImageBuffer[i--] << 8 | SantaImageBuffer[i--];
  10.                         TM_ILI9341_DrawPixel(x, y, color);
  11.                 }
  12.         }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement