Skip to content

Commit 824bdda

Browse files
committed
set Sega to 2bpp
1 parent 541c3c4 commit 824bdda

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/dmd_interface_desega.pio

Lines changed: 3 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,7 +45,7 @@ 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
5150
jmp x-- dotloop2
5251

@@ -65,7 +64,7 @@ dotloop2:
6564
wait_low:
6665
wait 0 gpio DE ; Wait for DE to go low
6766

68-
set x, 20 ; Use x as storage for 20 iterations
67+
set x, 20 ; Use x as storage for 20 iterations
6968

7069
delay_loop:
7170
nop [31]

src/dmd_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ bool init()
598598
lcd_pixelsperbyte = 8 / lcd_bitsperpixel;
599599
lcd_planesperframe = 2; // in Whitestar, there's a MSB and a LSB plane
600600
lcd_lineoversampling = LINEOVERSAMPLING_WHITESTAR; // in Whitestar each line is sent twice
601-
//lcd_mergeplanes = MERGEPLANES_ADDSHIFT; // required for correct 2bpp merge
601+
lcd_mergeplanes = MERGEPLANES_ADDSHIFT; // required for correct 2bpp merge
602602
} else if (dmd_type == DMD_SPIKE1) {
603603
dmd_pio = pio0;
604604
offset = pio_add_program(dmd_pio, &dmd_reader_spike_program);

0 commit comments

Comments
 (0)