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 |
| `connect` | EXP-CONNECT |
selectors
is a tuple with information on position of rotative switches of the expansion. Order follow swiches indexes.
function expansions_on¶
expansions_on()
function expansions_off¶
expansions_off()
function led
¶
led(color)
color
is the color to set. Possible colors are.BLACK
,WHITE
,RED
,GREEN
,BLUE
,YELLOW
,CYAN
andMAGENTA
.
function on_button_press
¶
on_button_press(fn, dir=FALLING_EDGE, debounce=0)
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 isFALLING_EDGE
;debounce
is the De-Bounce delay to set.
function init¶
init()
function summary¶
summary()