Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Arduino 1.0 compatible

  • Loading branch information...
commit f5fdb90f0c33a191442877a6182f8034e37dc812 1 parent 7d4b99d
Paint Your Dragon authored December 02, 2011
1  AccelStepper.cpp
@@ -3,7 +3,6 @@
3 3
 // Copyright (C) 2009 Mike McCauley
4 4
 // $Id: AccelStepper.cpp,v 1.2 2010/10/24 07:46:18 mikem Exp mikem $
5 5
 
6  
-#include "WProgram.h"
7 6
 #include "AccelStepper.h"
8 7
 
9 8
 void AccelStepper::moveTo(long absolute)
10  AccelStepper.h
@@ -66,8 +66,14 @@
66 66
 #ifndef AccelStepper_h
67 67
 #define AccelStepper_h
68 68
 
69  
-#include <stdlib.h>
70  
-#include <wiring.h>
  69
+#if ARDUINO >= 100
  70
+ #include "Arduino.h"
  71
+#else
  72
+ #include "WProgram.h"
  73
+ #include "stdlib.h"
  74
+ #include "wiring.h"
  75
+#endif
  76
+
71 77
 
72 78
 // These defs cause trouble on some versions of Arduino
73 79
 #undef round

0 notes on commit f5fdb90

Please sign in to comment.
Something went wrong with that request. Please try again.