Files
drivers/examples/sdcard/console/feather-m4.go
T
2021-05-23 11:22:42 +02:00

24 lines
380 B
Go

// +build feather_m4 feather_m4_can
package main
import (
"machine"
)
func init() {
spi = machine.SPI0
spi.Configure(machine.SPIConfig{
SCK: machine.SPI0_SCK_PIN,
SDO: machine.SPI0_SDO_PIN,
SDI: machine.SPI0_SDI_PIN,
Frequency: 24000000,
LSBFirst: false,
Mode: 0, // phase=0, polarity=0
})
csPin = machine.D10
ledPin = machine.LED
}