Skip to content
Snippets Groups Projects
Commit eed451e0 authored by Alexander Hirzel's avatar Alexander Hirzel
Browse files

rework analogInputToDigitalPin definition

parent f3209bba
Branches
No related tags found
No related merge requests found
...@@ -30,7 +30,10 @@ ...@@ -30,7 +30,10 @@
# include "Arduino.h" # include "Arduino.h"
#else #else
# include "WProgram.h" # include "WProgram.h"
#endif
// Arduino < 1.0.0 does not define this, so we need to do it ourselves // Arduino < 1.0.0 does not define this, so we need to do it ourselves
#ifndef analogInputToDigitalPin
# define analogInputToDigitalPin(p) ((p) + A0) # define analogInputToDigitalPin(p) ((p) + A0)
#endif #endif
...@@ -270,3 +273,4 @@ extern void digipot_i2c_init(); ...@@ -270,3 +273,4 @@ extern void digipot_i2c_init();
#endif #endif
extern void calculate_volumetric_multipliers(); extern void calculate_volumetric_multipliers();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment