Use constant for development ID in modules
This commit is contained in:
parent
ad4dd577d8
commit
368e696242
2 changed files with 2 additions and 4 deletions
|
@ -9,8 +9,7 @@ ezButton green_button(6);
|
|||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
// WARNING: do not use 255 for your module
|
||||
obus_module::setup(OBUS_TYPE_PUZZLE, 255);
|
||||
obus_module::setup(OBUS_TYPE_PUZZLE, OBUS_PUZZLE_ID_DEVELOPMENT);
|
||||
red_button.setDebounceTime(100);
|
||||
green_button.setDebounceTime(100);
|
||||
}
|
||||
|
|
|
@ -10,8 +10,7 @@ ezButton green_button(6);
|
|||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
// WARNING: do not use 255 for your module
|
||||
obus_module::setup(OBUS_TYPE_NEEDY, 255);
|
||||
obus_module::setup(OBUS_TYPE_NEEDY, OBUS_NEEDY_ID_DEVELOPMENT);
|
||||
green_button.setDebounceTime(100);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue