kasli/mitll: fix demo

This commit is contained in:
Sebastien Bourdeauducq 2018-04-17 20:15:38 +08:00
parent 79f4892e22
commit 48b48e44dd
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,8 @@ class UrukulTest(EnvExperiment):
self.setattr_device("urukul0_ch2")
self.setattr_device("urukul0_ch3")
self.setattr_device("led0")
self.ttl = self.get_device("ttl16")
self.setattr_device("led1")
self.ttl = self.get_device("ttl0")
@kernel
def run(self):
@ -50,3 +51,4 @@ class UrukulTest(EnvExperiment):
self.urukul0_ch0.sw.pulse(100*ms)
delay(100*ms)
self.led0.pulse(100*ms)
self.led1.pulse(100*ms)