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:
parent
5fb937f147
commit
95b01db098
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue