From 904ee3e730e5b8964bd10c718ae44b3958ded292 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 26 Apr 2020 11:51:06 +0800 Subject: [PATCH] make LED channels output-only --- examples/device_db.py | 2 +- zc706.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/device_db.py b/examples/device_db.py index 110c19f..49ab251 100644 --- a/examples/device_db.py +++ b/examples/device_db.py @@ -32,7 +32,7 @@ device_db = { "led3": { "type": "local", "module": "artiq.coredevice.ttl", - "class": "TTLInOut", + "class": "TTLOut", "arguments": {"channel": 3} }, } diff --git a/zc706.py b/zc706.py index 939695d..fab0c5b 100755 --- a/zc706.py +++ b/zc706.py @@ -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)