Skip to content

Commit 4349054

Browse files
authored
Update content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md
1 parent 884c7fb commit 4349054

File tree

1 file changed

+10
-0
lines changed
  • content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual

1 file changed

+10
-0
lines changed

content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,8 +1987,18 @@ void loop() {
19871987
19881988
}
19891989
```
1990+
Please take into account that `OptaController.update()` must be called cyclically to support the hot plug of new expansions. In other words, by calling the update() function cyclically, the controller will discover new expansions when they are plugged in while the controller is already running.
1991+
1992+
Thanks to this function, the action of plugging in a new expansion will cause the controller to start a completely new discovery process and a new I2C address assignment.
1993+
1994+
`OptaController.update()` function DOES NOT:
1995+
* Check if an expansion has been removed and remove their objects
1996+
* Update any data from or to the expansion
1997+
1998+
19901999
The expansion object in the example above is defined using the `OptaController.getExpansion(i);` function, as follows:
19912000

2001+
19922002
```arduino
19932003
for(int i = 0; i < 5; i++) { // check all the five available expansion slots
19942004
DigitalMechExpansion mechExp = OptaController.getExpansion(i);

0 commit comments

Comments
 (0)