All Projects → adafruit → Adafruit_CircuitPython_SD

adafruit / Adafruit_CircuitPython_SD

Licence: MIT license
SD card drivers for Adafruit CircuitPython

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Adafruit CircuitPython SD

awesome-micropythons
The many forks & ports of MicroPython
Stars: ✭ 35 (+45.83%)
Mutual labels:  circuitpython
CircuitPython Community Bundle
A bundle of useful CircuitPython libraries from the CircuitPython community.
Stars: ✭ 98 (+308.33%)
Mutual labels:  circuitpython
CircuitPython-online-IDE
CircuitPython online IDE
Stars: ✭ 15 (-37.5%)
Mutual labels:  circuitpython
qtpy-knob
QT Py Media Knob using rotary encoder & neopixel ring
Stars: ✭ 49 (+104.17%)
Mutual labels:  circuitpython
circuitpython-build-tools
Build scripts for CircuitPython libraries and the bundle
Stars: ✭ 20 (-16.67%)
Mutual labels:  circuitpython
lightroom-macro-pad
Lightroom Macro Pad With CircuitPython Boards
Stars: ✭ 33 (+37.5%)
Mutual labels:  circuitpython
Adafruit CircuitPython BNO055
CircuitPython driver for BNO055 absolute orientation sensor
Stars: ✭ 70 (+191.67%)
Mutual labels:  circuitpython
Big Honking Button
A simple Eurorack sampler and performance module in a silly package.
Stars: ✭ 45 (+87.5%)
Mutual labels:  circuitpython
Sol
An open-source MIDI-to-CV Eurorack module that runs CircuitPython
Stars: ✭ 56 (+133.33%)
Mutual labels:  circuitpython
awesome-macropad
A curated list of awesome applications, macros, 3d printed cases, guides, and more for the Adafruit CircuitPython rp2040 Macropad.
Stars: ✭ 26 (+8.33%)
Mutual labels:  circuitpython
CapableRobot USBHub Driver
www.crowdsupply.com/capable-robot-components/programmable-usb-hub
Stars: ✭ 17 (-29.17%)
Mutual labels:  circuitpython
CircuitPython GC9A01 demos
Demos showing how to use CircuitPython displayio driver for GC9A01 round LCDs
Stars: ✭ 18 (-25%)
Mutual labels:  circuitpython
usbhostcopro
USB Host Co-processor
Stars: ✭ 54 (+125%)
Mutual labels:  circuitpython
CircuitPython nRF24L01
CircuitPython driver library for the nRF24L01 transceiver.
Stars: ✭ 25 (+4.17%)
Mutual labels:  circuitpython
adafruit-circuitpython-weekly-meeting
Notes from the weekly circuitpython meetings on Discord
Stars: ✭ 22 (-8.33%)
Mutual labels:  circuitpython
micropython-adafruit-mqtt-esp8266
Using MQTT to Publish/Subscribe to adafruit io. MicroPython/CircuitPython implementation on ESP8266/ESP32
Stars: ✭ 53 (+120.83%)
Mutual labels:  circuitpython
Adafruit CircuitPython CharLCD
Library code for character LCD interfacing
Stars: ✭ 54 (+125%)
Mutual labels:  circuitpython
kerntroller
No description or website provided.
Stars: ✭ 31 (+29.17%)
Mutual labels:  circuitpython
Env-KB
A custom mechanical keyboard inspired by the CFTKB Mysterium utilizing the Raspberry Pi Pico
Stars: ✭ 203 (+745.83%)
Mutual labels:  circuitpython
PyDOS
DOS-like OS for microcontroller boards running Micropython or Circuitpython
Stars: ✭ 40 (+66.67%)
Mutual labels:  circuitpython

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython driver for SD cards. This implements the basic reading and writing block functionality needed to mount an SD card using storage.VfsFat.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Usage Example

Mounting a filesystem on an SD card so that its available through the normal Python ways is easy.

Below is an example for the Feather M0 Adalogger. Most of this will stay the same across different boards with the exception of the pins for the SPI and chip select (cs) connections.

import adafruit_sdcard
import busio
import digitalio
import board
import storage

# Connect to the card and mount the filesystem.
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
cs = digitalio.DigitalInOut(board.SD_CS)
sdcard = adafruit_sdcard.SDCard(spi, cs)
vfs = storage.VfsFat(sdcard)
storage.mount(vfs, "/sd")

# Use the filesystem as normal.
with open("/sd/test.txt", "w") as f:
    f.write("Hello world\n")

Sharing the SPI bus with other devices

Important

If the same SPI bus is shared with other peripherals, it is important that the SD card be initialized before accessing any other peripheral on the bus. Failure to do so can prevent the SD card from being recognized until it is powered off or re-inserted.

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].