Calibration code cleanup
This commit is contained in:
parent
e448ba427c
commit
82b0f3a47c
1 changed files with 2 additions and 2 deletions
|
@ -495,10 +495,10 @@ void setup() {
|
|||
//auto-calibrate the vibrato threshold while showing splash screen
|
||||
vibZero = breathCalZero = 0;
|
||||
const int sampleCount = 4;
|
||||
for(int i =0 ; i < sampleCount; ++i) {
|
||||
for(int i = 1 ; i <= sampleCount; ++i) {
|
||||
vibZero += touchRead(vibratoPin);
|
||||
breathCalZero += analogRead(breathSensorPin);
|
||||
digitalWrite( statusLedPin, 1-(i&1) );
|
||||
digitalWrite( statusLedPin, i&1 );
|
||||
delay(250);
|
||||
}
|
||||
vibZero /= sampleCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue