forked from M-Labs/artiq
1
0
Fork 0

ddb_template: print LED channel nos on Kasli v2

This commit is contained in:
Robert Jördens 2021-08-05 17:29:38 +02:00
parent c9608c0a89
commit fd824f7ad0
1 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ class GenericStandalone(StandaloneBase):
self.rtio_channels.append(rtio.Channel.from_phy(phy))
if hw_rev == "v2.0":
for i in (1, 2):
print("USER LED at RTIO channel 0x{:06x}".format(len(self.rtio_channels)))
phy = ttl_simple.Output(self.platform.request("user_led", i))
self.submodules += phy
self.rtio_channels.append(rtio.Channel.from_phy(phy))