Permalink
Browse files

Arduino 1.0 compatible

1 parent 7d4b99d commit f5fdb90f0c33a191442877a6182f8034e37dc812 @PaintYourDragon PaintYourDragon committed Dec 3, 2011
Showing with 8 additions and 3 deletions.
  1. +0 −1 AccelStepper.cpp
  2. +8 −2 AccelStepper.h
View
@@ -3,7 +3,6 @@
// Copyright (C) 2009 Mike McCauley
// $Id: AccelStepper.cpp,v 1.2 2010/10/24 07:46:18 mikem Exp mikem $
-#include "WProgram.h"
#include "AccelStepper.h"
void AccelStepper::moveTo(long absolute)
View
@@ -66,8 +66,14 @@
#ifndef AccelStepper_h
#define AccelStepper_h
-#include <stdlib.h>
-#include <wiring.h>
+#if ARDUINO >= 100
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+ #include "stdlib.h"
+ #include "wiring.h"
+#endif
+
// These defs cause trouble on some versions of Arduino
#undef round

0 comments on commit f5fdb90

Please sign in to comment.