mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
add Sayma LED blinker example
This commit is contained in:
parent
569484f888
commit
100c2b1769
14
artiq/examples/sayma/repository/blink_led.py
Normal file
14
artiq/examples/sayma/repository/blink_led.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user