Skip to content

Commit

Permalink
Update all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru committed Feb 28, 2025
1 parent c57f888 commit abd19ea
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/AnalogLogger/AnalogLogger.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// A simple data logger for the Arduino analog pins with optional DS1307
// uses RTClib from https://github.com/adafruit/RTClib
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"
#include "FreeStack.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Program to test Short File Name character case flags.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"

const uint8_t chipSelect = SS;

Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/HelloWorld/HelloWorld.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// create a serial output stream
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/MiniSerial/MiniSerial.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Will not work on Due, Leonardo, or Teensy

#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "FreeStack.h"
#ifdef UDR0 // Must be AVR with serial port zero.
#include "MinimumSerial.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/SdFatSize/SdFatSize.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"

SdFat sd;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Simple demo of the Stream parsInt() member function.
#include <SPI.h>
// The next two lines replace #include <SD.h>.
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
SdFat SD;

// SD card chip select pin - Modify the value of csPin for your SD module.
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/append/append.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* The program will open and close the file 100 times.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// SD chip select pin
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/average/average.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Calculate the sum and average of a list of floating point numbers
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// SD chip select pin
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/bufstream/bufstream.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Use of ibufsteam to parse a line and obufstream to format a line
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// create a serial output stream
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/cin_cout/cin_cout.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Demo of ArduinoInStream and ArduinoOutStream
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// create serial output stream
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/eventlog/eventlog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Append a line to a file - demo of pathnames and streams
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"
// SD chip select pin
const uint8_t chipSelect = SS;
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/fgetsRewrite/fgetsRewrite.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Demo of rewriting a line read by fgets
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// SD card chip select pin
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/#attic/readlog/readlog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Demo of pathnames and working directories
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// SD chip select pin
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/AnalogBinLogger/AnalogBinLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
#ifdef __AVR__
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "FreeStack.h"
#include "AnalogBinLogger.h"
//------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/LongFileName/LongFileName.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// You can use test files located in
// SdFat/examples/LongFileName/testFiles.
#include<SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "FreeStack.h"

// SD card chip select pin.
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/LowLatencyLogger/LowLatencyLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Data is written to the file using a SD multiple block write command.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "FreeStack.h"
#include "UserTypes.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Data is written to the file using a SD multiple block write command.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "FreeStack.h"
#include "UserTypes.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Data is written to the file using a SD multiple block write command.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "FreeStack.h"
#include "UserTypes.h"

Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/PrintBenchmark/PrintBenchmark.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* This program is a simple Print benchmark.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"
#include "FreeStack.h"

Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/RawWrite/RawWrite.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* marks the blocks as erased; no data transfer is required.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"
#include "FreeStack.h"

Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/ReadCsvStream/ReadCsvStream.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Each line of the file has a label and three values, a long and two floats.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// SD chip select pin
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/ReadWrite/ReadWrite.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <SPI.h>
//#include <SD.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
SdFat SD;

#define SD_CS_PIN SS
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/STM32Test/STM32Test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Note SPI speed is limited to 18 MHz.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "FreeStack.h"
#error See new Version 2 STM32 example
// set ENABLE_EXTENDED_TRANSFER_CLASS non-zero to use faster EX classes
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/StdioBench/StdioBench.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Benchmark comparing SdFile and StdioStream.
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// Define PRINT_FIELD nonzero to use printField.
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/Timestamp/Timestamp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* and the timestamp() function.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"
SdFat sd;

Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/TwoCards/TwoCards.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Example use of two SD cards.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "FreeStack.h"

SdFat sd1;
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/VolumeFreeSpace/VolumeFreeSpace.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* This program demonstrates the freeClusterCount() call.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"
/*
* SD chip select pin. Common values are:
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/dataLogger/dataLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Simple data logger.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"

// SD chip select pin. Be sure to disable any other SPI devices such as Enet.
const uint8_t chipSelect = SS;
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/fgets/fgets.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Demo of fgets function to read lines from a file.
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// SD chip select pin
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/formatting/formatting.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Format dates
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// create Serial stream
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/getline/getline.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* may not the best way to read a file.
*/
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
#include "sdios.h"

// SD chip select pin
Expand Down
2 changes: 1 addition & 1 deletion examples/examplesV1/wipe/wipe.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Example to wipe all data from an already formatted SD.
#error wipe is not supported in SdFat V2. Use bool format(print_t* pr = nullptr).
#include <SPI.h>
#include "SdFat.h"
#include "SdFat_Adafruit_Fork.h"
const int chipSelect = SS;

SdFat sd;
Expand Down

0 comments on commit abd19ea

Please sign in to comment.