Skip to content

ZM1-DB

function next_expansion

next_expansion(e, selectors=None)
* e is the next expansion type module.

Use the following table to choose the right expansion.

| module  | expansion |
|---------|-----------|
| `io`    | EXP-IO    |
| `relay` | EXP-RELAY |
| `ser`   | EXP-SER   |
| `ain`   | EXP-AIN   |
  • selectors is a tuple with information on position of rotative switches of the expansion. Order follow swiches indexes.

function expansions_on

expansions_on()
Power on all the expansions conected to the ZM1-DB.

function expansions_off

expansions_off()
Shut down all the expansions conected to the ZM1-DB.

function led

led(color)
Set the color of the led.

  • color is the color to set. Possible colors are. BLACK, WHITE, RED, GREEN, BLUE, YELLOW, CYAN and MAGENTA.

function init

init()
Reinitialize all exapansions connected to the ZM1-DB.

function summary

summary()
Print a summary on ZM1-DB and its connected expansions.