mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-09-01 12:29:00 +00:00
apply @gen2thomas suggestions
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ func New(b drivers.SPI) *Device {
|
||||
// NewSoftwareSPI returns a new APA102 driver that will use a software based
|
||||
// implementation of the SPI protocol.
|
||||
func NewSoftwareSPI(sckPin, sdoPin legacy.PinOutput, delay uint32) *Device {
|
||||
return New(&bbSPI{SCK: sckPin.Set, SDO: sdoPin.Set, Delay: delay, config: func() {
|
||||
return New(&bbSPI{SCK: sckPin.Set, SDO: sdoPin.Set, Delay: delay, configurePins: func() {
|
||||
legacy.ConfigurePinOut(sckPin)
|
||||
legacy.ConfigurePinOut(sdoPin)
|
||||
}})
|
||||
|
||||
Reference in New Issue
Block a user