Skip to content

Commit

Permalink
Update copyright. Optional C++ ios
Browse files Browse the repository at this point in the history
  • Loading branch information
greiman committed Aug 10, 2018
1 parent d43541f commit 46aff55
Show file tree
Hide file tree
Showing 75 changed files with 118 additions and 58 deletions.
1 change: 1 addition & 0 deletions examples/#attic/AnalogLogger/AnalogLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// uses RTClib from https://github.com/adafruit/RTClib
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"
#include "FreeStack.h"

#define SD_CHIP_SELECT SS // SD chip select pin
Expand Down
1 change: 1 addition & 0 deletions examples/#attic/HelloWorld/HelloWorld.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// create a serial output stream
ArduinoOutStream cout(Serial);
Expand Down
1 change: 1 addition & 0 deletions examples/#attic/append/append.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// SD chip select pin
const uint8_t chipSelect = SS;
Expand Down
1 change: 1 addition & 0 deletions examples/#attic/average/average.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// SD chip select pin
const uint8_t chipSelect = SS;
Expand Down
1 change: 1 addition & 0 deletions examples/#attic/bufstream/bufstream.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// create a serial output stream
ArduinoOutStream cout(Serial);
Expand Down
1 change: 1 addition & 0 deletions examples/#attic/cin_cout/cin_cout.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// create serial output stream
ArduinoOutStream cout(Serial);
Expand Down
2 changes: 1 addition & 1 deletion examples/#attic/eventlog/eventlog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
#include <SPI.h>
#include "SdFat.h"

#include "sdios.h"
// SD chip select pin
const uint8_t chipSelect = SS;

Expand Down
1 change: 1 addition & 0 deletions examples/#attic/fgetsRewrite/fgetsRewrite.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Demo of rewriting a line read by fgets
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// SD card chip select pin
const uint8_t chipSelect = SS;
Expand Down
1 change: 1 addition & 0 deletions examples/#attic/readlog/readlog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// SD chip select pin
const uint8_t chipSelect = SS;
Expand Down
2 changes: 1 addition & 1 deletion examples/DirectoryFunctions/DirectoryFunctions.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
#include <SPI.h>
#include "SdFat.h"

#include "sdios.h"
// SD card chip select pin.
const uint8_t chipSelect = SS;
//------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions examples/PrintBenchmark/PrintBenchmark.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"
#include "FreeStack.h"

// SD chip select pin
Expand Down
1 change: 1 addition & 0 deletions examples/QuickStart/QuickStart.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"
//
// Set DISABLE_CHIP_SELECT to disable a second SPI device.
// For example, with the Ethernet shield, set DISABLE_CHIP_SELECT
Expand Down
1 change: 1 addition & 0 deletions examples/RawWrite/RawWrite.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"
#include "FreeStack.h"

// SD chip select pin
Expand Down
1 change: 1 addition & 0 deletions examples/ReadCsvStream/ReadCsvStream.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// SD chip select pin
const uint8_t chipSelect = SS;
Expand Down
1 change: 1 addition & 0 deletions examples/SdFormatter/SdFormatter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const uint8_t chipSelect = SS;
#define DEBUG_PRINT 0
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"
#if DEBUG_PRINT
#include "FreeStack.h"
#endif // DEBUG_PRINT
Expand Down
1 change: 1 addition & 0 deletions examples/SdInfo/SdInfo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// Set USE_SDIO to zero for SPI card access.
#define USE_SDIO 0
Expand Down
1 change: 1 addition & 0 deletions examples/Timestamp/Timestamp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

SdFat sd;

Expand Down
1 change: 1 addition & 0 deletions examples/VolumeFreeSpace/VolumeFreeSpace.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"
/*
* SD chip select pin. Common values are:
*
Expand Down
1 change: 1 addition & 0 deletions examples/bench/bench.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"
#include "FreeStack.h"

// Set USE_SDIO to zero for SPI card access.
Expand Down
1 change: 1 addition & 0 deletions examples/fgets/fgets.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Demo of fgets function to read lines from a file.
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// SD chip select pin
const uint8_t chipSelect = SS;
Expand Down
1 change: 1 addition & 0 deletions examples/formatting/formatting.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// create Serial stream
ArduinoOutStream cout(Serial);
Expand Down
1 change: 1 addition & 0 deletions examples/getline/getline.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// SD chip select pin
const uint8_t chipSelect = SS;
Expand Down
1 change: 1 addition & 0 deletions examples/rename/rename.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

// SD chip select pin
const uint8_t chipSelect = SS;
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SdFat
version=1.0.6
version=1.0.7
author=Bill Greiman <[email protected]>
maintainer=Bill Greiman <[email protected]>
sentence=FAT16/FAT32 file system for SD cards.
Expand Down
2 changes: 1 addition & 1 deletion src/BlockDriver.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/ArduinoFiles.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/ArduinoStream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/BaseBlockDriver.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatApiConstants.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatFile.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatFile.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatFileLFN.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatFilePrint.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatFileSFN.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
3 changes: 1 addition & 2 deletions src/FatLib/FatFileSystem.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand All @@ -26,7 +26,6 @@
#define FatFileSystem_h
#include "FatVolume.h"
#include "FatFile.h"
#include "ArduinoStream.h"
#include "ArduinoFiles.h"
/**
* \file
Expand Down
4 changes: 1 addition & 3 deletions src/FatLib/FatLib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand All @@ -25,13 +25,11 @@
#ifndef FatLib_h
#define FatLib_h
#include "ArduinoFiles.h"
#include "ArduinoStream.h"
#include "FatFileSystem.h"
#include "FatLibConfig.h"
#include "FatVolume.h"
#include "FatFile.h"
#include "StdioStream.h"
#include "fstream.h"
//------------------------------------------------------------------------------
/** FatFileSystem version YYYYMMDD */
#define FAT_LIB_VERSION 20150131
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatLibConfig.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatStructs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatVolume.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FatVolume.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FmtNumber.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/FmtNumber.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/StdioStream.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/StdioStream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/bufstream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/fstream.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/fstream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/ios.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/iostream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
2 changes: 1 addition & 1 deletion src/FatLib/istream.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 20011-2017 Bill Greiman
* Copyright (c) 2011-2018 Bill Greiman
* This file is part of the SdFat library for SD memory cards.
*
* MIT License
Expand Down
Loading

0 comments on commit 46aff55

Please sign in to comment.