mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
Merge branch 'platformio' into platformio
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//=====================================================================================================================================
|
||||
|
||||
Reference in New Issue
Block a user