set_i2c_decoder

Configure decoder on the given channel

Parameters

integer required
Id of channel to configure decoder on
allowed values:1 to 2
integer required
Bit index to send/receive data
allowed values:1 to 16
integer
Bit index to send clock signal
default: undefined
allowed values:1 to 16
boolean
Disable all implicit conversions and coercions.
default: true

# Examples

# Sample response

{
    "clock_bit": 2,
    "data_bit": 1,
    "protocol": "I2C"
}
1
2
3
4
5