diff options
author | Paint Your Dragon <paintyourdragon@dslextreme.com> | 2011-12-03 05:37:41 +0400 |
---|---|---|
committer | Paint Your Dragon <paintyourdragon@dslextreme.com> | 2011-12-03 05:37:41 +0400 |
commit | dd30da7ecb40581377dc4bb8fc9044a995ddb4d4 (patch) | |
tree | 794108b615dfe8801a372a9552424684a8e5956e | |
parent | 3a4bad11ffe469ead62c48ca080ec7f84db35c6b (diff) |
Arduino 1.0 compatible
-rw-r--r-- | AFMotor.cpp | 10 |
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) |