Skip to content

Commit 77df751

Browse files
committed
Ran black, added one license
1 parent 5973da4 commit 77df751

File tree

4 files changed

+24
-21
lines changed

4 files changed

+24
-21
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ bundles
88
*.DS_Store
99
.eggs
1010
dist
11-
**/*.egg-info
11+
**/*.egg-info

CODE_OF_CONDUCT.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Examples of unacceptable behavior by participants include:
4343

4444
The goal of the standards and moderation guidelines outlined here is to build
4545
and maintain a respectful community. We ask that you don’t just aim to be
46-
"technically unimpeachable", but rather try to be your best self.
46+
"technically unimpeachable", but rather try to be your best self.
4747

4848
We value many things beyond technical expertise, including collaboration and
4949
supporting others within our community. Providing a positive experience for
@@ -74,9 +74,9 @@ You may report in the following ways:
7474
In any situation, you may send an email to <[email protected]>.
7575

7676
On the Adafruit Discord, you may send an open message from any channel
77-
to all Community Moderators by tagging @community moderators. You may
78-
also send an open message from any channel, or a direct message to
79-
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
77+
to all Community Moderators by tagging @community moderators. You may
78+
also send an open message from any channel, or a direct message to
79+
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
8080
@sommersoft#0222, @Mr. Certainly#0472 or @Andon#8175.
8181

8282
Email and direct message reports will be kept confidential.

README.rst.license

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2+
3+
SPDX-License-Identifier: MIT

adafruit_sdcard.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -79,27 +79,27 @@
7979
class SDCard:
8080
"""Controls an SD card over SPI.
8181
82-
:param ~busio.SPI spi: The SPI bus
83-
:param ~digitalio.DigitalInOut cs: The chip select connected to the card
84-
:param int baudrate: The SPI data rate to use after card setup
82+
:param ~busio.SPI spi: The SPI bus
83+
:param ~digitalio.DigitalInOut cs: The chip select connected to the card
84+
:param int baudrate: The SPI data rate to use after card setup
8585
86-
Example usage:
86+
Example usage:
8787
88-
.. code-block:: python
88+
.. code-block:: python
8989
90-
import busio
91-
import storage
92-
import adafruit_sdcard
93-
import os
94-
import board
90+
import busio
91+
import storage
92+
import adafruit_sdcard
93+
import os
94+
import board
9595
96-
spi = busio.SPI(SCK, MOSI, MISO)
97-
sd = adafruit_sdcard.SDCard(spi, board.SD_CS)
98-
vfs = storage.VfsFat(sdcard)
99-
storage.mount(vfs, '/sd')
100-
os.listdir('/')
96+
spi = busio.SPI(SCK, MOSI, MISO)
97+
sd = adafruit_sdcard.SDCard(spi, board.SD_CS)
98+
vfs = storage.VfsFat(sdcard)
99+
storage.mount(vfs, '/sd')
100+
os.listdir('/')
101101
102-
"""
102+
"""
103103

104104
def __init__(self, spi, cs, baudrate=1320000):
105105
# This is the init baudrate.

0 commit comments

Comments
 (0)