sdcard: add support for fatfs

This commit is contained in:
sago35
2021-05-14 19:03:12 +09:00
committed by Ron Evans
parent 5a02fe068b
commit 6b914f7af7
25 changed files with 870 additions and 67 deletions
+4 -10
View File
@@ -1,4 +1,4 @@
// +build feather_m4 feather_m4_can
// +build feather_m4 feather_m4_can feather_nrf52840
package main
@@ -8,15 +8,9 @@ import (
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
})
sckPin = machine.SPI0_SCK_PIN
sdoPin = machine.SPI0_SDO_PIN
sdiPin = machine.SPI0_SDI_PIN
csPin = machine.D10
ledPin = machine.LED