Merge pull request #1606 from thinkyhead/cleanup_stepper
Cleanup of stepper.cpp
This commit is contained in:
commit
bb4cb1b15a
20 changed files with 640 additions and 852 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue