Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion examples/#attic/AnalogLogger/AnalogLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include "sdios.h"
#include "FreeStack.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

#define SD_CHIP_SELECT SS // SD chip select pin
#define USE_DS1307 0 // set nonzero to use DS1307 RTC
#define LOG_INTERVAL 1000 // mills between entries
Expand Down Expand Up @@ -194,4 +198,4 @@ void loop() {
logfile.close();
cout << F("Done!");
SysCall::halt();
}
}
4 changes: 4 additions & 0 deletions examples/#attic/BaseExtCaseTest/BaseExtCaseTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <SPI.h>
#include "SdFat.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

const uint8_t chipSelect = SS;

SdFat sd;
Expand Down
4 changes: 4 additions & 0 deletions examples/#attic/HelloWorld/HelloWorld.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "SdFat.h"
#include "sdios.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// create a serial output stream
ArduinoOutStream cout(Serial);

Expand Down
6 changes: 5 additions & 1 deletion examples/#attic/MiniSerial/MiniSerial.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifdef UDR0 // Must be AVR with serial port zero.
#include "MinimumSerial.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

MinimumSerial MiniSerial;

void setup() {
Expand All @@ -26,4 +30,4 @@ void loop() {
}
#else // UDR0
#error no AVR serial port 0
#endif // UDR0
#endif // UDR0
6 changes: 5 additions & 1 deletion examples/#attic/PrintBenchmarkSD/PrintBenchmarkSD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <SPI.h>
#include <SD.h>

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD chip select pin
const uint8_t chipSelect = SS;

Expand Down Expand Up @@ -122,4 +126,4 @@ void loop() {
}
file.close();
Serial.println(F("Done!\n"));
}
}
4 changes: 4 additions & 0 deletions examples/#attic/SD_Size/SD_Size.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include <SPI.h>
#include <SD.h>

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

File file;
//------------------------------------------------------------------------------
void setup() {
Expand Down
4 changes: 4 additions & 0 deletions examples/#attic/SdFatSize/SdFatSize.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include <SPI.h>
#include "SdFat.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

SdFat sd;

SdFile file;
Expand Down
7 changes: 6 additions & 1 deletion examples/#attic/StreamParseInt/StreamParseInt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#include <SPI.h>
// The next two lines replace #include <SD.h>.
#include "SdFat.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

SdFat SD;

// SD card chip select pin - Modify the value of csPin for your SD module.
Expand Down Expand Up @@ -41,4 +46,4 @@ void setup() {
file.close();
}

void loop() {}
void loop() {}
4 changes: 4 additions & 0 deletions examples/#attic/append/append.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
#include "SdFat.h"
#include "sdios.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD chip select pin
const uint8_t chipSelect = SS;

Expand Down
4 changes: 4 additions & 0 deletions examples/#attic/average/average.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include "SdFat.h"
#include "sdios.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD chip select pin
const uint8_t chipSelect = SS;

Expand Down
6 changes: 5 additions & 1 deletion examples/#attic/benchSD/benchSD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include <SPI.h>
#include <SD.h>

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD chip select pin
const uint8_t chipSelect = SS;

Expand Down Expand Up @@ -146,4 +150,4 @@ void loop() {
Serial.print(F(" usec\n\n"));
Serial.print(F("Done\n\n"));
file.close();
}
}
4 changes: 4 additions & 0 deletions examples/#attic/bufstream/bufstream.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include "SdFat.h"
#include "sdios.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// create a serial output stream
ArduinoOutStream cout(Serial);
//------------------------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions examples/#attic/cin_cout/cin_cout.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include "SdFat.h"
#include "sdios.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// create serial output stream
ArduinoOutStream cout(Serial);

Expand Down
5 changes: 5 additions & 0 deletions examples/#attic/eventlog/eventlog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD chip select pin
const uint8_t chipSelect = SS;

Expand Down
4 changes: 4 additions & 0 deletions examples/#attic/fgetsRewrite/fgetsRewrite.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
#include "SdFat.h"
#include "sdios.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD card chip select pin
const uint8_t chipSelect = SS;

Expand Down
6 changes: 5 additions & 1 deletion examples/#attic/readlog/readlog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include "SdFat.h"
#include "sdios.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD chip select pin
const uint8_t chipSelect = SS;

Expand Down Expand Up @@ -48,4 +52,4 @@ void setup() {
cout << "Done" << endl;
}
//------------------------------------------------------------------------------
void loop() {}
void loop() {}
7 changes: 6 additions & 1 deletion examples/AnalogBinLogger/AnalogBinLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
#include "SdFat.h"
#include "FreeStack.h"
#include "AnalogBinLogger.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

//------------------------------------------------------------------------------
// Analog pin number list for a sample. Pins may be in any order and pin
// numbers may be repeated.
Expand Down Expand Up @@ -823,4 +828,4 @@ void loop(void) {
}
#else // __AVR__
#error This program is only for AVR.
#endif // __AVR__
#endif // __AVR__
7 changes: 6 additions & 1 deletion examples/DirectoryFunctions/DirectoryFunctions.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
#include <SPI.h>
#include "SdFat.h"
#include "sdios.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD card chip select pin.
const uint8_t chipSelect = SS;
//------------------------------------------------------------------------------
Expand Down Expand Up @@ -121,4 +126,4 @@ void setup() {
}
//------------------------------------------------------------------------------
// Nothing happens in loop.
void loop() {}
void loop() {}
6 changes: 5 additions & 1 deletion examples/LongFileName/LongFileName.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include "SdFat.h"
#include "FreeStack.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD card chip select pin.
const uint8_t SD_CS_PIN = SS;

Expand Down Expand Up @@ -99,4 +103,4 @@ void loop() {
file.close();
Serial.flush();
delay(100);
}
}
7 changes: 6 additions & 1 deletion examples/LowLatencyLogger/LowLatencyLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@
#include "FreeStack.h"
#include "UserTypes.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

#ifdef __AVR_ATmega328P__
#include "MinimumSerial.h"
MinimumSerial MinSerial;
#define Serial MinSerial
#endif // __AVR_ATmega328P__

//==============================================================================
// Start of configuration constants.
//==============================================================================
Expand Down Expand Up @@ -652,4 +657,4 @@ void loop(void) {
} else {
Serial.println(F("Invalid entry"));
}
}
}
4 changes: 4 additions & 0 deletions examples/LowLatencyLogger/UserFunctions.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "UserTypes.h"
// User data functions. Modify these functions for your data items.

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// Start time for data
static uint32_t startMicros;

Expand Down
7 changes: 6 additions & 1 deletion examples/LowLatencyLoggerADXL345/LowLatencyLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@
#include "FreeStack.h"
#include "UserTypes.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

#ifdef __AVR_ATmega328P__
#include "MinimumSerial.h"
MinimumSerial MinSerial;
#define Serial MinSerial
#endif // __AVR_ATmega328P__

//==============================================================================
// Start of configuration constants.
//==============================================================================
Expand Down Expand Up @@ -652,4 +657,4 @@ void loop(void) {
} else {
Serial.println(F("Invalid entry"));
}
}
}
4 changes: 4 additions & 0 deletions examples/LowLatencyLoggerADXL345/UserFunctions.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "UserTypes.h"
// User data functions. Modify these functions for your data items.

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// Start time for data
static uint32_t startMicros;

Expand Down
7 changes: 6 additions & 1 deletion examples/LowLatencyLoggerMPU6050/LowLatencyLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@
#include "FreeStack.h"
#include "UserTypes.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

#ifdef __AVR_ATmega328P__
#include "MinimumSerial.h"
MinimumSerial MinSerial;
#define Serial MinSerial
#endif // __AVR_ATmega328P__

//==============================================================================
// Start of configuration constants.
//==============================================================================
Expand Down Expand Up @@ -652,4 +657,4 @@ void loop(void) {
} else {
Serial.println(F("Invalid entry"));
}
}
}
5 changes: 5 additions & 0 deletions examples/LowLatencyLoggerMPU6050/UserFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
#include "Wire.h"
#include "I2Cdev.h"
#include "MPU6050.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

//------------------------------------------------------------------------------
MPU6050 mpu;
static uint32_t startMicros;
Expand Down
4 changes: 4 additions & 0 deletions examples/OpenNext/OpenNext.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <SPI.h>
#include "SdFat.h"

#ifdef SDFAT_NAMESPACE
using namespace sdfat;
#endif

// SD default chip select pin.
const uint8_t chipSelect = SS;

Expand Down
Loading