Skip to content

Commit e8ff5a2

Browse files
committed
thanks Jode gustavo for suggestion!
1 parent 892dc73 commit e8ff5a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rp2-pio/piolib/i2s.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ func NewI2S(sm pio.StateMachine, data, clockAndNext machine.Pin) (*I2S, error) {
4747
sm: sm,
4848
offset: offset,
4949
}
50+
// This enables the state machine. Good practice to not require users to do this
51+
// since they may be confused why nothing is happening.
52+
i2s.Paused(false)
5053
return i2s, nil
5154
}
5255

0 commit comments

Comments
 (0)