Skip to content

Commit

Permalink
fix: correct errors in code generation (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram authored Feb 13, 2025
1 parent 57ca4e0 commit 5ad99ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion rp2-pio/examples/blinky/blink.pio
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
// this is a raw helper function for use by the user which sets up the GPIO output, and configures the SM to output on a particular pin
func blinkProgramInit(sm pio.StateMachine, offset uint8, pin machine.Pin) {
pin.Configure(machine.PinConfig{Mode: sm.PIO().PinMode()})
sm.SetConsecutivePinDirs(pin, 1, true)
sm.SetPindirsConsecutive(pin, 1, true)
cfg := blinkProgramDefaultConfig(offset)
cfg.SetSetPins(pin, 1)
sm.Init(offset, cfg)
Expand Down
1 change: 0 additions & 1 deletion rp2-pio/piolib/all_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ var (
//go:generate pioasm -o go parallel8.pio parallel8_pio.go
//go:generate pioasm -o go pulsar.pio pulsar_pio.go
//go:generate pioasm -o go spi.pio spi_pio.go
//go:generate pioasm -o go ws2812.pio ws2812_pio.go
//go:generate pioasm -o go ws2812b.pio ws2812b_pio.go
//go:generate pioasm -o go i2s.pio i2s_pio.go
//go:generate pioasm -o go spi3w.pio spi3w_pio.go
Expand Down

0 comments on commit 5ad99ec

Please sign in to comment.