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 |
selectorsis 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)
coloris the color to set. Possible colors are.BLACK,WHITE,RED,GREEN,BLUE,YELLOW,CYANandMAGENTA.
function on_button_press¶
on_button_press(fn, dir=FALLING_EDGE, debounce=0)
USER_BUTTON to call an interrupt callback when pressed. fnis the function to be called when the button is pressed;diris the wave edge that will trigger the callback. Default isFALLING_EDGE;debounceis the De-Bounce delay to set.
function init¶
init()
function summary¶
summary()