Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Arduino 1.0 compatible

  • Loading branch information...
commit 53a20b0d15a6a35f8e2b2542216654af255da240 1 parent d97082b
@infomaniac50 authored
View
1  Logger.cpp
@@ -4,7 +4,6 @@
Released into the public domain.
*/
-#include "Arduino.h"
#include "Logger.h"
#include <LoggerSD.h>
View
7 Logger.h
@@ -7,7 +7,12 @@
#ifndef Logger_h
#define Logger_h
-#include "Arduino.h"
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+#endif
+
#include <LoggerSD.h>
enum log_outputs
View
6 LoggerSD.h
@@ -15,7 +15,11 @@
#ifndef __SD_H__
#define __SD_H__
-#include <Arduino.h>
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+#endif
#include <utility/SdFat.h>
#include <utility/SdFatUtil.h>
View
6 utility/Sd2Card.cpp
@@ -17,7 +17,11 @@
* along with the Arduino Sd2Card Library. If not, see
* <http://www.gnu.org/licenses/>.
*/
-#include <Arduino.h>
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+#endif
#include "Sd2Card.h"
//------------------------------------------------------------------------------
#ifndef SOFTWARE_SPI
View
6 utility/SdFatUtil.h
@@ -23,7 +23,11 @@
* \file
* Useful utility functions.
*/
-#include <Arduino.h>
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+#endif
#include <avr/pgmspace.h>
/** Store and print a string in flash memory.*/
#define PgmPrint(x) SerialPrint_P(PSTR(x))
Please sign in to comment.
Something went wrong with that request. Please try again.