We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac17bb1 commit c49d1a6Copy full SHA for c49d1a6
1 file changed
deploy/src/shift_driver.jl
@@ -98,13 +98,13 @@ function open_shift_registers(pio_idx::Integer=0)
98
pio_pin_init!(pio, pin)
99
end
100
101
- load_program!(pio, prog, config)
+ offset = load_program!(pio, prog, config)
102
103
sm = claim_sm(pio)
104
try
105
pin_mask = UInt32(1) << SER_PIN | UInt32(1) << CLK_PIN | UInt32(1) << RCLK_PIN
106
set_pindirs!(sm, pin_mask, pin_mask)
107
- PIOLib.init!(sm, 0, config)
+ PIOLib.init!(sm, offset, config)
108
setup_shift_register!(sm, NBITS)
109
enable!(sm)
110
catch
0 commit comments