Merge pull request #1606 from thinkyhead/cleanup_stepper

Cleanup of stepper.cpp
This commit is contained in:
Scott Lahteine
2015-03-15 06:05:08 -07:00
20 changed files with 640 additions and 852 deletions

View File

@ -32,6 +32,9 @@
#include "WProgram.h"
#endif
#define BIT(b) (1<<(b))
#define TEST(n,b) ((n)&BIT(b)!=0)
// Arduino < 1.0.0 does not define this, so we need to do it ourselves
#ifndef analogInputToDigitalPin
#define analogInputToDigitalPin(p) ((p) + 0xA0)