Hi -
For one of my project, I'm using around 30 digital pins(finding it tedious to write to define each one of them as digital input),and want to define all of them as input - with just one statement!
Wondering if there is one, would be grateful if shown a way to do it and syntax, (below is example - a small portion of the coding)
int sen[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
#define pinMode(A0, INPUT);
#define pinMode(A1, INPUT);
#define pinMode(A2, INPUT);
#define pinMode(A3, INPUT);
#define pinMode(A4, INPUT);
#define pinMode(A5, INPUT);
#define pinMode(A6, INPUT);
#define pinMode(A7, INPUT);
...................
...........
void setup() {
for(int i;i<32;i+1)
{
PinMode(sen*,LOW);*
}