Arduino 1.0 compatible
This commit is contained in:
parent
7d4b99d4b3
commit
f5fdb90f0c
2 changed files with 8 additions and 3 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
// Copyright (C) 2009 Mike McCauley
|
// Copyright (C) 2009 Mike McCauley
|
||||||
// $Id: AccelStepper.cpp,v 1.2 2010/10/24 07:46:18 mikem Exp mikem $
|
// $Id: AccelStepper.cpp,v 1.2 2010/10/24 07:46:18 mikem Exp mikem $
|
||||||
|
|
||||||
#include "WProgram.h"
|
|
||||||
#include "AccelStepper.h"
|
#include "AccelStepper.h"
|
||||||
|
|
||||||
void AccelStepper::moveTo(long absolute)
|
void AccelStepper::moveTo(long absolute)
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,14 @@
|
||||||
#ifndef AccelStepper_h
|
#ifndef AccelStepper_h
|
||||||
#define AccelStepper_h
|
#define AccelStepper_h
|
||||||
|
|
||||||
#include <stdlib.h>
|
#if ARDUINO >= 100
|
||||||
#include <wiring.h>
|
#include "Arduino.h"
|
||||||
|
#else
|
||||||
|
#include "WProgram.h"
|
||||||
|
#include "stdlib.h"
|
||||||
|
#include "wiring.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// These defs cause trouble on some versions of Arduino
|
// These defs cause trouble on some versions of Arduino
|
||||||
#undef round
|
#undef round
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue