Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 11 | ||
---|---|---|---|
Line 20... | Line 20... | ||
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 | ||
25 | if(!pixel && ++cnt==4) { display.display(); cnt = 0; } |
25 | if(!pixel && ++cnt==10) { display.display(); cnt = 0; } |
26 | } |
26 | } |
27 | } |
27 | } |
28 | } |
28 | } |
29 | 29 |