Code: Select all
voltageInput0 = VoltageInput()
voltageInput0.setHubPort(0)
voltageInput0.setOnVoltageChangeHandler(onVoltageChangePort0)
voltageInput0.setOnErrorHandler(onError)
voltageInput0.openWaitForAttachment(1000)
voltageInput0.setVoltageChangeTrigger(0.0)
voltageInput0.setDataRate(1000)
Code: Select all
AttributeError: 'VoltageInput' object has no attribute 'setDataRate'
Any suggestions?