Added arbitrary exposure via buttons
This commit is contained in:
parent
ee0555cd5d
commit
00df49a7c8
|
@ -241,14 +241,14 @@ void button_end (int index, long buttontime) {
|
||||||
Output(2, 250);
|
Output(2, 250);
|
||||||
}
|
}
|
||||||
} else if (index == 2) { // set speed
|
} else if (index == 2) { // set speed
|
||||||
if (buttontime <= 1000) {
|
if (buttontime >= 1000) {
|
||||||
fwd_speed = FAST_PWM;
|
timed_delay = buttontime - BOLEX_C;
|
||||||
bwd_speed = FAST_PWM;
|
timed = true;
|
||||||
Output(1, 500);
|
Output(2, 250);
|
||||||
} else if (buttontime > 1000) {
|
} else if (buttontime < 1000) {
|
||||||
fwd_speed = SLOW_PWM;
|
timed_delay = 0;
|
||||||
bwd_speed = SLOW_PWM;
|
timed = false;
|
||||||
Output(2, 250);
|
Output(1, 500);
|
||||||
}
|
}
|
||||||
} else if (index == 3) { //set delay
|
} else if (index == 3) { //set delay
|
||||||
if (buttontime < 42) {
|
if (buttontime < 42) {
|
||||||
|
@ -401,3 +401,4 @@ void log (String msg) {
|
||||||
Serial.println(msg);
|
Serial.println(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue