OLIMEX© 2015
To turn off all relays use:
# i2cset -y -f 2 0x58 0x10 0x0F
To read digital inputs:
# i2cget -y -f 2 0x58 0x20 c
To read analog value of IN1:
# i2cset -y -f 2 0x58 0x30
# i2cget -y -f 2 0x58 w
To change address to 0×22:
# i2cset -y -f 2 0x58 0xF0 0x22
MOD-IO user's manual
Page 15 of 30