From 64c3f8f6167cfeab5b8a7d5086f297ca428c3eae Mon Sep 17 00:00:00 2001 From: Enrique Condes Date: Sat, 19 Jul 2014 20:32:03 -0500 Subject: [PATCH] - Update to work with Arduino 1.0 and later. --- PlainFFT.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PlainFFT.h b/PlainFFT.h index 5a49570..29efbac 100644 --- a/PlainFFT.h +++ b/PlainFFT.h @@ -21,7 +21,11 @@ #ifndef PlainFFT_h /* Prevent loading library twice */ #define PlainFFT_h -#include "WProgram.h" /* This is where the standard Arduino code lies */ +#if ARDUINO >= 100 + #include "Arduino.h"; +#else + #include "WProgram.h" /* This is where the standard Arduino code lies */ +#endif #define FFT_LIB_REV 0x02 /* Custom constants */