Merge pull request #1606 from thinkyhead/cleanup_stepper
Cleanup of stepper.cpp
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user