@@ -153,15 +153,15 @@ namespace pimoroni {
153
153
// find the offset of this row and frame in the bitstream
154
154
uint8_t *p = &bitstream[row * ROW_BYTES + (BCD_FRAME_BYTES * frame)];
155
155
156
- p[ 0 ] = 64 - 1 ; // row pixel count
156
+ p[ 0 ] = 32 - 1 ; // row pixel count
157
157
p[ 1 ] = row; // row select
158
158
159
159
// set the number of bcd ticks for this frame
160
160
uint32_t bcd_ticks = (1 << frame);
161
- p[68 ] = (bcd_ticks & 0xff ) >> 0 ;
162
- p[69 ] = (bcd_ticks & 0xff00 ) >> 8 ;
163
- p[70 ] = (bcd_ticks & 0xff0000 ) >> 16 ;
164
- p[71 ] = (bcd_ticks & 0xff000000 ) >> 24 ;
161
+ p[36 ] = (bcd_ticks & 0xff ) >> 0 ;
162
+ p[37 ] = (bcd_ticks & 0xff00 ) >> 8 ;
163
+ p[38 ] = (bcd_ticks & 0xff0000 ) >> 16 ;
164
+ p[39 ] = (bcd_ticks & 0xff000000 ) >> 24 ;
165
165
}
166
166
}
167
167
@@ -463,15 +463,6 @@ namespace pimoroni {
463
463
x = (WIDTH - 1 ) - x;
464
464
y = (HEIGHT - 1 ) - y;
465
465
466
- // map coordinates into display space
467
- if (y < 16 ) {
468
- // move to top half of display (which is actually the right half of the framebuffer)
469
- x += 32 ;
470
- }else {
471
- // remap y coordinate
472
- y -= 16 ;
473
- }
474
-
475
466
r = (r * this ->brightness ) >> 8 ;
476
467
g = (g * this ->brightness ) >> 8 ;
477
468
b = (b * this ->brightness ) >> 8 ;
@@ -482,11 +473,11 @@ namespace pimoroni {
482
473
483
474
// for each row:
484
475
// for each bcd frame:
485
- // 0: 00111111 // row pixel count (minus one)
486
- // 1 - 64 : xxxxxbgr, xxxxxbgr, xxxxxbgr, ... // pixel data
487
- // 65 - 67 : xxxxxxxx, xxxxxxxx, xxxxxxxx // dummy bytes to dword align
488
- // 68 : xxxxrrrr // row select bits
489
- // 69 - 71 : tttttttt, tttttttt, tttttttt // bcd tick count (0-65536)
476
+ // 0: 00011111 // row pixel count (minus one)
477
+ // 1 - 32 : xxxxxbgr, xxxxxbgr, xxxxxbgr, ... // pixel data
478
+ // 33 - 35 : xxxxxxxx, xxxxxxxx, xxxxxxxx // dummy bytes to dword align
479
+ // 36 : xxxxrrrr // row select bits
480
+ // 37 - 39 : tttttttt, tttttttt, tttttttt // bcd tick count (0-65536)
490
481
//
491
482
// .. and back to the start
492
483
0 commit comments