|
|
|
|
|
|
|
|
#ifndef __SD_H__ |
|
|
#ifndef __SD_H__ |
|
|
#define __SD_H__ |
|
|
#define __SD_H__ |
|
|
|
|
|
|
|
|
#include <Arduino.h> |
|
|
|
|
|
#include <SdFat.h> |
|
|
|
|
|
|
|
|
#include <core/Arduino.h> |
|
|
|
|
|
#include <sdfat/SdFat.h> |
|
|
// Use FILE_READ & FILE_WRITE as defined by FS.h |
|
|
// Use FILE_READ & FILE_WRITE as defined by FS.h |
|
|
#if defined(FILE_READ) && !defined(FS_H) |
|
|
#if defined(FILE_READ) && !defined(FS_H) |
|
|
#undef FILE_READ |
|
|
#undef FILE_READ |
|
|
|
|
|
|
|
|
#if defined(FILE_WRITE) && !defined(FS_H) |
|
|
#if defined(FILE_WRITE) && !defined(FS_H) |
|
|
#undef FILE_WRITE |
|
|
#undef FILE_WRITE |
|
|
#endif |
|
|
#endif |
|
|
#include <FS.h> |
|
|
|
|
|
|
|
|
#include <core/FS.h> |
|
|
|
|
|
|
|
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__) || defined(__IMXRT1062__) |
|
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__) || defined(__IMXRT1062__) |
|
|
#define BUILTIN_SDCARD 254 |
|
|
#define BUILTIN_SDCARD 254 |