|
-
- #ifndef SdFatUtil_h
- #define SdFatUtil_h
-
- #include "SdFat.h"
-
- #define PgmPrint(x) SerialPrint_P(PSTR(x))
-
- #define PgmPrintln(x) SerialPrintln_P(PSTR(x))
-
- namespace SdFatUtil {
-
-
- int FreeRam();
-
-
- void print_P(Print* pr, PGM_P str);
-
-
- void println_P(Print* pr, PGM_P str);
-
-
-
- inline void SerialPrint_P(PGM_P str) {
- print_P(&Serial, str);
- }
-
-
-
- inline void SerialPrintln_P(PGM_P str) {
- println_P(&Serial, str);
- }
- }
- using namespace SdFatUtil;
- #endif
|