forked from M-Labs/artiq
1
0
Fork 0

add Sayma LED blinker example

This commit is contained in:
Sebastien Bourdeauducq 2017-12-14 18:49:50 +08:00
parent 569484f888
commit 100c2b1769
1 changed files with 14 additions and 0 deletions

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)