Skip to main 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.

moduleexpansion
ioEXP-IO
relayEXP-RELAY
serEXP-SER
ainEXP-AIN
connectEXP-CONNECT
  • 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 on_button_press

on_button_press(fn, dir=FALLING_EDGE, debounce=0)

Set-up the USER_BUTTON to call an interrupt callback when pressed.

  • fn is the function to be called when the button is pressed;
  • dir is the wave edge that will trigger the callback. Default is FALLING_EDGE;
  • debounce is the De-Bounce delay to set.

function init

init()

Reinitialize all exapansions connected to the ZM1-DB.

function summary

summary()

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