This commit is contained in:
Yuri Trikoz
2020-06-22 14:01:54 +03:00
6 changed files with 21 additions and 15 deletions

View File

@@ -1,11 +1,11 @@
#include "Global.h"
boolean but[NUM_BUTTONS];
Bounce *buttons = new Bounce[NUM_BUTTONS];
Servo myServo1;
Servo myServo2;
boolean but[NUM_BUTTONS];
Bounce *buttons;
void CMD_init() {
sCmd.addCommand("button", button);
sCmd.addCommand("buttonSet", buttonSet);
@@ -257,7 +257,7 @@ void handleButton() {
}
}
switch_number++;
if (switch_number == 6) switch_number = 0;
if (switch_number == NUM_BUTTONS) switch_number = 0;
}
//=====================================================================================================================================