nrf5/examples: Updating documentation in SDCard module example. Correcting typo and adding SD card wireing documentation for direct SPI connection.

This commit is contained in:
Glenn Ruben Bakke 2017-05-28 22:41:34 +02:00 committed by glennrub
parent 5fb937f147
commit 95b01db098
1 changed files with 16 additions and 1 deletions

View File

@ -22,10 +22,25 @@ Example usage on ESP8266:
Example usage on NRF52832:
import os, machine, sdcard
sd = sdcard.SDCard(machine.SPI(0), machine.PIN("A22", mode=machine.Pin.OUT))
sd = sdcard.SDCard(machine.SPI(0), machine.Pin("A22", mode=machine.Pin.OUT))
os.mount(sd, "")
os.listdir()
Direct wireing on SD card (SPI):
# ______________________________
# | \
# | 9. | NC | \
# | 1. | ~CS | |
# | 2. | MOSI | |
# | 3. | GND | |
# | 4. | VCC3.3| |
# | 5. | SCK | |
# | 6. | GND | |
# | 7. | MISO | |
# | 8. | NC | |
# | |
# ---------------------------------
"""
import time