Hello,
I wrote a Python script to use AD2 as I2C master, controlling two additional digital pins at the same time.
I2C is set as per example:
dwf.FDwfDigitalI2cRateSet(hdwf, c_double(1e5)) # 100kHz dwf.FDwfDigitalI2cSclSet(hdwf, c_int(0)) # SCL = DIO-0
dwf.FDwfDigitalI2cSdaSet(hdwf, c_int(1)) # SDA = DIO-1
dwf.FDwfDigitalI2cClear(hdwf, byref(iNak))
While I though that setting DIO2 and DIO3 as outputs would no conflict with I2C:
#dwf.FDwfDigitalIOOutputEnableSet(hdwf,