if (rightButton.clicks == 3) {
toggleLED();
}
if (leftButton.clicks == 3) {
flash();
}
if (leftButton.clicks == 4) {
outputBatteryInfo();
}
I think the button function is already very good. Ideally, I would include all possible combinations that are easy to implement here, even if we are not currently using them.
if (rightButton.clicks == 3) { toggleLED(); } if (leftButton.clicks == 3) { flash(); } if (leftButton.clicks == 4) { outputBatteryInfo(); }
I think the button function is already very good. Ideally, I would include all possible combinations that are easy to implement here, even if we are not currently using them.