mirror of https://github.com/m-labs/artiq.git
examples/ad5360: adapt for Zotino
This commit is contained in:
parent
e80a527f2e
commit
00a2e51f99
|
@ -4,7 +4,7 @@ from artiq.experiment import *
|
||||||
class AD5360Test(EnvExperiment):
|
class AD5360Test(EnvExperiment):
|
||||||
def build(self):
|
def build(self):
|
||||||
self.setattr_device("core")
|
self.setattr_device("core")
|
||||||
self.dac = self.get_device("dac0")
|
self.dac = self.get_device("dac_zotino")
|
||||||
self.setattr_device("led")
|
self.setattr_device("led")
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
|
@ -15,4 +15,4 @@ class AD5360Test(EnvExperiment):
|
||||||
self.led.on()
|
self.led.on()
|
||||||
delay(400*us)
|
delay(400*us)
|
||||||
self.led.off()
|
self.led.off()
|
||||||
self.dac.set([i << 10 for i in range(40)])
|
self.dac.set([i << 10 for i in range(32)])
|
||||||
|
|
Loading…
Reference in New Issue