Skip to content

Commit 446d2ab

Browse files
authored
Add configure pins example to SD card sample (#397)
1 parent 1f74151 commit 446d2ab

File tree

1 file changed

+10
-0
lines changed
  • samples/System.IO.FileSystem/MountExample

1 file changed

+10
-0
lines changed

samples/System.IO.FileSystem/MountExample/Program.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ public static void Main()
1919
{
2020
Debug.WriteLine("Hello from nanoFramework - SD card Mount example");
2121

22+
// Configure pins for SDMMC1 and/or SDMMC2, this only needs to be done with devices that have configurable SDIO/MMC pins (ESP32_S3 and ESP32_P4).
23+
// Configure pins to match pins used by board.
24+
// A reference to nanoFramework.Hardware.Esp32 will also be required.
25+
//Configuration.SetPinFunction(16, DeviceFunction.SDMMC1_CLOCK);
26+
//Configuration.SetPinFunction(18, DeviceFunction.SDMMC1_COMMAND);
27+
//Configuration.SetPinFunction(19, DeviceFunction.SDMMC1_D0);
28+
//Configuration.SetPinFunction(20, DeviceFunction.SDMMC1_D1);
29+
//Configuration.SetPinFunction(21 DeviceFunction.SDMMC1_D2);
30+
//Configuration.SetPinFunction(22, DeviceFunction.SDMMC1_D3);
31+
2232
// Initialise an instance of SDCard using constructor specific to your board/adapter
2333

2434
// Boards with SD card interface and parameters built in to firmware

0 commit comments

Comments
 (0)