change inputs to external pullup

This commit is contained in:
interfisch 2020-02-13 19:40:33 +01:00
parent 55606d9fd4
commit d637fe09ce
1 changed files with 8 additions and 7 deletions

View File

@ -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
}
}