change inputs to external pullup
This commit is contained in:
parent
55606d9fd4
commit
d637fe09ce
|
@ -15,14 +15,14 @@ unsigned long last_send=0;
|
|||
#define MINIMUMSENDDELAY 10 //in milliseconds. minimum delay between serial sends
|
||||
|
||||
void setup() {
|
||||
pinMode(A0, INPUT_PULLUP);
|
||||
pinMode(A0, INPUT);
|
||||
pinMode(A1, INPUT);
|
||||
pinMode(A2, INPUT_PULLUP);
|
||||
pinMode(A3, INPUT_PULLUP);
|
||||
pinMode(A4, INPUT_PULLUP);
|
||||
pinMode(A5, INPUT_PULLUP);
|
||||
pinMode(A6, INPUT_PULLUP);
|
||||
pinMode(A7, INPUT_PULLUP);
|
||||
pinMode(A2, INPUT);
|
||||
pinMode(A3, INPUT);
|
||||
pinMode(A4, INPUT);
|
||||
pinMode(A5, INPUT);
|
||||
pinMode(A6, INPUT);
|
||||
pinMode(A7, INPUT);
|
||||
Serial.begin(115200);
|
||||
}
|
||||
|
||||
|
@ -75,6 +75,7 @@ void loop() {
|
|||
last_send=loopmillis;
|
||||
//Serial.println(touchOut, BIN);
|
||||
Serial.write(touchOut); //Send byte
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue