Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/adafruit/Adafruit-Motor-Shield-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaint Your Dragon <paintyourdragon@dslextreme.com>2011-12-03 05:37:41 +0400
committerPaint Your Dragon <paintyourdragon@dslextreme.com>2011-12-03 05:37:41 +0400
commitdd30da7ecb40581377dc4bb8fc9044a995ddb4d4 (patch)
tree794108b615dfe8801a372a9552424684a8e5956e
parent3a4bad11ffe469ead62c48ca080ec7f84db35c6b (diff)
Arduino 1.0 compatible
-rw-r--r--AFMotor.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/AFMotor.cpp b/AFMotor.cpp
index bab2b8c..8ac0c08 100644
--- a/AFMotor.cpp
+++ b/AFMotor.cpp
@@ -3,10 +3,16 @@
// this code is public domain, enjoy!
-#include <avr/io.h>
-#include "WProgram.h"
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include <avr/io.h>
+ #include "WProgram.h"
+#endif
#include "AFMotor.h"
+
+
static uint8_t latch_state;
#if (MICROSTEPS == 8)