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 fd7a48a72ad47a2e828d13fb2edbf4d3cdebd50e 1 parent 3b9a7eb
@infomaniac50 authored
Showing with 5 additions and 2 deletions.
  1. +0 −1  ADXL335.cpp
  2. +5 −1 ADXL335.h
View
1  ADXL335.cpp
@@ -4,7 +4,6 @@
Released into the public domain.
*/
-#include "WProgram.h"
#include "ADXL335.h"
ADXL335::ADXL335(int pin_x, int pin_y, int pin_z, float aref)
View
6 ADXL335.h
@@ -7,7 +7,11 @@
#ifndef ADXL335_h
#define ADXL335_h
-#include "WProgram.h"
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+#endif
class ADXL335
{
Please sign in to comment.
Something went wrong with that request. Please try again.