add Sayma LED blinker example

This commit is contained in:
Sebastien Bourdeauducq 2017-12-14 18:49:50 +08:00
parent 569484f888
commit 100c2b1769

View File

@ -0,0 +1,14 @@
from artiq.experiment import *
class BlinkSaymaLED(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("led0")
@kernel
def run(self):
self.core.reset()
while True:
self.led0.pulse(100*ms)
delay(100*ms)