Skip to content

Commit b8a8f5c

Browse files
committed
Bugfix WPC-95
Image was shifted by one pixel on WPC95 (tested with AFM). The frame detection now waits for one more pixel. This change has not been tested on other WPC systems. Therefore, it might break the interface on older WPC systems
1 parent fcc3d95 commit b8a8f5c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/dmd_interface_wpc.pio

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ lineloop:
4949
wait 0 gpio rclk
5050
jmp x-- lineloop
5151

52+
; delay by 1 pixel
53+
wait 0 gpio 4
54+
wait 1 gpio 4
55+
5256
irq 4
5357

5458
.wrap
@@ -109,4 +113,4 @@ static inline void dmd_framedetect_wpc_program_init(PIO pio, uint sm, uint offse
109113
// Load our configuration, do not yet start the program
110114
pio_sm_init(pio, sm, offset, &c);
111115
}
112-
%}
116+
%}

0 commit comments

Comments
 (0)