Skip to content

Commit a90afd1

Browse files
committed
Correct typos in comments and documentation
1 parent 1bd58e6 commit a90afd1

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

examples/CardInfo/CardInfo.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
SD card test
33
4-
This example shows how use the utility libraries on which the'
4+
This example shows how use the utility libraries on which the
55
SD library is based in order to get info about your SD card.
66
Very useful for testing a card when you're not sure whether its working or not.
7-
Pin numbers reflect the default SPI pins for Uno and Nano models
7+
Pin numbers reflect the default SPI pins for Uno and Nano models.
88
The circuit:
99
SD card attached to SPI bus as follows:
1010
** SDO - pin 11 on Arduino Uno/Duemilanove/Diecimila
@@ -32,7 +32,7 @@ SdFile root;
3232
// Arduino Ethernet shield: pin 4
3333
// Adafruit SD shields and modules: pin 10
3434
// Sparkfun SD shield: pin 8
35-
// MKRZero SD: SDCARD_SS_PIN
35+
// MKR Zero SD: SDCARD_SS_PIN
3636
const int chipSelect = 10;
3737

3838
void setup() {
@@ -96,13 +96,13 @@ void setup() {
9696

9797
volumesize = volume.blocksPerCluster(); // clusters are collections of blocks
9898
volumesize *= volume.clusterCount(); // we'll have a lot of clusters
99-
volumesize /= 2; // SD card blocks are always 512 bytes (2 blocks are 1KB)
100-
Serial.print("Volume size (Kb): ");
99+
volumesize /= 2; // SD card blocks are always 512 bytes (2 blocks are 1 KB)
100+
Serial.print("Volume size (KB): ");
101101
Serial.println(volumesize);
102-
Serial.print("Volume size (Mb): ");
102+
Serial.print("Volume size (MB): ");
103103
volumesize /= 1024;
104104
Serial.println(volumesize);
105-
Serial.print("Volume size (Gb): ");
105+
Serial.print("Volume size (GB): ");
106106
Serial.println((float)volumesize / 1024.0);
107107

108108
Serial.println("\nFiles found on the card (name, date and size in bytes): ");

examples/Datalogger/Datalogger.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
SPI pins for Uno and Nano models
77
88
The circuit:
9-
analog sensors on analog ins 0, 1, and 2
9+
analog sensors on analog pins 0, 1, and 2
1010
SD card attached to SPI bus as follows:
1111
** SDO - pin 11
1212
** SDI - pin 12
1313
** CLK - pin 13
1414
** CS - depends on your SD card shield or module.
1515
Pin 10 used here for consistency with other Arduino examples
16-
(for MKRZero SD: SDCARD_SS_PIN)
16+
(for MKR Zero SD: SDCARD_SS_PIN)
1717
1818
created 24 Nov 2010
1919
modified 24 July 2020
@@ -41,7 +41,7 @@ void setup() {
4141
Serial.println("1. is a card inserted?");
4242
Serial.println("2. is your wiring correct?");
4343
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
44-
Serial.println("Note: press reset or reopen this serial monitor after fixing your issue!");
44+
Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!");
4545
while (true);
4646
}
4747

examples/DumpFile/DumpFile.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
** CLK - pin 13
1313
** CS - depends on your SD card shield or module.
1414
Pin 10 used here for consistency with other Arduino examples
15-
(for MKRZero SD: SDCARD_SS_PIN)
15+
(for MKR Zero SD: SDCARD_SS_PIN)
1616
1717
created 22 December 2010
1818
by Limor Fried
@@ -38,7 +38,7 @@ void setup() {
3838
Serial.println("1. is a card inserted?");
3939
Serial.println("2. is your wiring correct?");
4040
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
41-
Serial.println("Note: press reset or reopen this serial monitor after fixing your issue!");
41+
Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!");
4242
while (true);
4343
}
4444

examples/Files/Files.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
SD card basic file example
33
4-
This example shows how to create and destroy an SD card file
4+
This example shows how to create and destroy an SD card file.
55
The circuit. Pin numbers reflect the default
66
SPI pins for Uno and Nano models:
77
SD card attached to SPI bus as follows:
@@ -10,7 +10,7 @@
1010
** CLK - pin 13
1111
** CS - depends on your SD card shield or module.
1212
Pin 10 used here for consistency with other Arduino examples
13-
(for MKRZero SD: SDCARD_SS_PIN)
13+
(for MKR Zero SD: SDCARD_SS_PIN)
1414
1515
created Nov 2010
1616
by David A. Mellis

examples/NonBlockingWrite/NonBlockingWrite.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
** CLK - pin 13
2525
** CS - depends on your SD card shield or module.
2626
Pin 10 used here for consistency with other Arduino examples
27-
(for MKRZero SD: SDCARD_SS_PIN)
27+
(for MKR Zero SD: SDCARD_SS_PIN)
2828
2929
modified 24 July 2020
3030
by Tom Igoe
@@ -48,7 +48,7 @@ unsigned long lastMillis = 0;
4848
void setup() {
4949
// Open serial communications and wait for port to open:
5050
Serial.begin(9600);
51-
// reserve 1kB for String used as a dataBuffer
51+
// reserve 1 kB for String used as a dataBuffer
5252
dataBuffer.reserve(1024);
5353

5454
// set LED pin to output, used to blink when writing
@@ -64,7 +64,7 @@ void setup() {
6464
Serial.println("1. is a card inserted?");
6565
Serial.println("2. is your wiring correct?");
6666
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
67-
Serial.println("Note: press reset or reopen this serial monitor after fixing your issue!");
67+
Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!");
6868
while (true);
6969
}
7070

examples/ReadWrite/ReadWrite.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
** SDO - pin 11
99
** SDI - pin 12
1010
** CLK - pin 13
11-
** CS - pin 4 (For For Uno, Nano: pin 10. For MKRZero SD: SDCARD_SS_PIN)
11+
** CS - pin 4 (For For Uno, Nano: pin 10. For MKR Zero SD: SDCARD_SS_PIN)
1212
1313
created Nov 2010
1414
by David A. Mellis
@@ -36,7 +36,7 @@ void setup() {
3636
Serial.println("1. is a card inserted?");
3737
Serial.println("2. is your wiring correct?");
3838
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
39-
Serial.println("Note: press reset or reopen this serial monitor after fixing your issue!");
39+
Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!");
4040
while (true);
4141
}
4242

examples/listfiles/listfiles.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
Listfiles
33
4-
This example shows how print out the files in a
5-
directory on a SD card.Pin numbers reflect the default
4+
This example shows how to print out the files in a
5+
directory on a SD card. Pin numbers reflect the default
66
SPI pins for Uno and Nano models
77
88
The circuit:
@@ -12,7 +12,7 @@
1212
** CLK - pin 13
1313
** CS - depends on your SD card shield or module.
1414
Pin 10 used here for consistency with other Arduino examples
15-
(for MKRZero SD: SDCARD_SS_PIN)
15+
(for MKR Zero SD: SDCARD_SS_PIN)
1616
1717
created Nov 2010
1818
by David A. Mellis
@@ -44,7 +44,7 @@ void setup() {
4444
Serial.println("1. is a card inserted?");
4545
Serial.println("2. is your wiring correct?");
4646
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
47-
Serial.println("Note: press reset or reopen this serial monitor after fixing your issue!");
47+
Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!");
4848
while (true);
4949
}
5050

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version=1.2.4
33
author=Arduino, SparkFun
44
maintainer=Arduino <[email protected]>
55
sentence=Enables reading and writing on SD cards.
6-
paragraph=Once an SD memory card is connected to the SPI interface of the Arduino or Genuino board you can create files and read/write on them. You can also move through directories on the SD card.
6+
paragraph=Once an SD memory card is connected to the SPI interface of the Arduino board you can create files and read/write on them. You can also move through directories on the SD card.
77
category=Data Storage
88
url=http://www.arduino.cc/en/Reference/SD
99
architectures=*

0 commit comments

Comments
 (0)