Skip to content

fix: correct errors in code generation #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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