Added CV calibration

This commit is contained in:
2023-08-05 00:05:49 +03:00
parent 4c6c68e260
commit c5a252cb34
2 changed files with 34 additions and 14 deletions

View File

@ -269,7 +269,7 @@ void checkInputs() {
updateScreen();
}
//modulations
a1Input = analogRead(ANALOGUE_INPUT_1_PIN);
a2Input = analogRead(ANALOGUE_INPUT_2_PIN);
//modulations map(randMod, 0, 1023, -5, +5)
a1Input = map(analogRead(ANALOGUE_INPUT_1_PIN), 0 - CV1Calibration, 1023 - CV1Calibration, 0, 1023);
a2Input = map(analogRead(ANALOGUE_INPUT_2_PIN), 0 - CV2Calibration, 1023 - CV2Calibration, 0, 1023);
}