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
+3 -9
View File
@@ -8,15 +8,9 @@ import (
func init() {
spi = machine.SPI2
spi.Configure(machine.SPIConfig{
SCK: machine.SCK2,
SDO: machine.SDO2,
SDI: machine.SDI2,
Frequency: 24000000,
LSBFirst: false,
Mode: 0, // phase=0, polarity=0
})
sckPin = machine.SCK2
sdoPin = machine.SDO2
sdiPin = machine.SDI2
csPin = machine.SS2
ledPin = machine.LED