Subversion Repositories DashDisplay

Rev

Rev 50 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50 Rev 59
Line 19... Line 19...
19
          for (int x = 0; x < bouncy1_width; x++)
19
          for (int x = 0; x < bouncy1_width; x++)
20
        {
20
        {
21
          int index = (y * bouncy1_width + x) / 8;
21
          int index = (y * bouncy1_width + x) / 8;
22
          uint8_t pixel = ((bouncy1_bits[index]) >> (x & 7)) & 1;
22
          uint8_t pixel = ((bouncy1_bits[index]) >> (x & 7)) & 1;
23
          display.drawPixel (x, y, !pixel);
23
          display.drawPixel (x, y, !pixel);
-
 
24
 
24
          if(!pixel && ++cnt==2) { display.display(); cnt = 0; }
25
          if(!pixel && ++cnt==4) { display.display(); cnt = 0; }
25
        }
26
        }
26
    }
27
    }
27
}
28
}
28
 
29