make LED channels output-only

core0-buffer
parent 6fbd6152da
commit 904ee3e730
  1. 2
      examples/device_db.py
  2. 2
      zc706.py

@ -32,7 +32,7 @@ device_db = {
"led3": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLInOut",
"class": "TTLOut",
"arguments": {"channel": 3}
},
}

@ -32,7 +32,7 @@ class ZC706(SoCCore):
rtio_channels = []
for i in range(4):
pad = platform.request("user_led", i)
phy = ttl_simple.InOut(pad)
phy = ttl_simple.Output(pad)
self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy))
self.add_rtio(rtio_channels)

Loading…
Cancel
Save