Skip to content

Commit c12be38

Browse files
committed
pio fix
1 parent 122a147 commit c12be38

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dmd_interface_capcom.pio

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,16 @@ dot_read_loop:
4545
in x, 2 ; shift in 2 bits, isr is 127 now
4646
mov y, isr ; copy 127 to Y
4747
mov isr, null ; clear ISR and reset shift counter
48-
set x, 30
48+
set x, 31
4949

5050
wait 0 gpio RDATA
5151
wait 1 gpio RDATA
5252

53-
skip_31_rows:
53+
; When RDATA got HIGH, we already missed the start of the first row, so we skip 32 end of rows.
54+
skip_32_rows:
5455
wait 1 gpio RCLK
5556
wait 0 gpio RCLK
56-
jmp x-- skip_31_rows
57+
jmp x-- skip_32_rows
5758

5859
.wrap_target
5960
irq FRAME_START_IRQ

0 commit comments

Comments
 (0)