Jump to content

linuxrocks

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by linuxrocks

  1. I tried this and it still comes up as all on...

    Confirmed the port was off before cycling power.

    from daqhats import hat_list, HatIDs, mcc128, mcc152
    from daqhats import DIOConfigItem,AnalogInputMode,AnalogInputRange,OptionFlags

    a = mcc152(0)
    values=0
    a.dio_output_write_port(values)
    a.dio_config_write_port(DIOConfigItem.DIRECTION,0)
    a.dio_config_write_port(DIOConfigItem.PULL_CONFIG,0)
    a.dio_config_write_port(DIOConfigItem.PULL_ENABLE,1)

×
×
  • Create New...