Added pulldown resistor for analogue inputs

This commit is contained in:
2023-02-04 12:48:38 +02:00
parent 7a72340730
commit 85800d7217
4 changed files with 371 additions and 228 deletions

View File

@ -251,10 +251,11 @@ void checkInputs() {
//modulations
a1Input = analogRead(ANALOGUE_INPUT_1_PIN);
a1Input = map (a1Input, 5, 1023, 0, 4);
a1Input = map (a1Input, 0, 1023, 0, 4);
a2Input = analogRead(ANALOGUE_INPUT_2_PIN);
Serial.println(a2Input);
a2Input = map (a2Input, 5, 1023, 0, 4);
a2Input = map (a2Input, 0, 1023, 0, 4);
}