Skip to content

Commit 54a0b55

Browse files
committed
fixed input data reading to be 2bit on whitestar
1 parent 3883fd7 commit 54a0b55

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/dmd_interface_whitestar.pio

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
dotloop1:
3030
wait 0 gpio DOTCLK ; falling edge
3131
wait 1 gpio DOTCLK ; raising edge
32-
in null 2 ; padding
3332
in pins 1 ; read pin data
34-
in null 1
33+
in null 1 ; right padding
3534
jmp x-- dotloop1
3635

3736
mov x, y ; load number of pixels
@@ -46,9 +45,8 @@ dotloop1:
4645
dotloop2:
4746
wait 0 gpio DOTCLK ; falling edge
4847
wait 1 gpio DOTCLK ; raising edge
49-
in null 3 ; padding
48+
in null 1 ; left padding
5049
in pins 1 ; read pin data
51-
;in null 1 ; multiply *2
5250
jmp x-- dotloop2
5351

5452

src/dmd_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ bool init()
584584

585585
lcd_width = 128;
586586
lcd_height = 32;
587-
lcd_bitsperpixel = 2; // it's only 3, but padding to 4 makes things easier
587+
lcd_bitsperpixel = 2;
588588
lcd_pixelsperbyte = 8 / lcd_bitsperpixel;
589589
lcd_planesperframe = 2; // in Whitestar, there's a MSB and a LSB plane
590590
lcd_lineoversampling = LINEOVERSAMPLING_WHITESTAR; // in Whitestar each line is sent twice

0 commit comments

Comments
 (0)