Changes up to 1.6.0
This commit is contained in:
parent
c8bd07799a
commit
1a543a6734
11 changed files with 507 additions and 196 deletions
|
|
@ -176,7 +176,11 @@ void autoCalSelected() {
|
|||
}
|
||||
// Lever
|
||||
if(adjustOption == 5) {
|
||||
#if defined(SEAMUS)
|
||||
calRead = touchRead(vibratoPin);
|
||||
#else
|
||||
calRead = 3000-touchRead(vibratoPin);
|
||||
#endif
|
||||
leverThrVal = constrain(calRead+60, leverLoLimit, leverHiLimit);
|
||||
leverMaxVal = constrain(calRead+120, leverLoLimit, leverHiLimit);
|
||||
writeSetting(LEVER_THR_ADDR, leverThrVal);
|
||||
|
|
@ -419,7 +423,11 @@ void plotSensorPixels(){
|
|||
}
|
||||
#endif
|
||||
else if(adjustOption == 5) {
|
||||
int pos = map(constrain(3000-touchRead(vibratoPin), leverLoLimit, leverHiLimit), leverLoLimit, leverHiLimit, 28, 118);
|
||||
#if defined(SEAMUS)
|
||||
int pos = map(constrain(touchRead(vibratoPin), leverLoLimit, leverHiLimit), leverLoLimit, leverHiLimit, 28, 118);
|
||||
#else
|
||||
int pos = map(constrain(3000-touchRead(vibratoPin), leverLoLimit, leverHiLimit), leverLoLimit, leverHiLimit, 28, 118);
|
||||
#endif
|
||||
redraw = updateSensorPixel(pos, -1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue